Skip to content

Commit

Permalink
Merge pull request #53 from younesaassila/fix-51
Browse files Browse the repository at this point in the history
Fix #51
  • Loading branch information
cacharle authored May 3, 2023
2 parents c336f8a + 03a36c5 commit 089febf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c_formatter_42/data/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ BreakBeforeTernaryOperators: true

# ColumnLimit (unsigned)
# The column limit.
ColumnLimit: 0
ColumnLimit: 1024


# FixNamespaceComments (bool)
Expand Down
14 changes: 14 additions & 0 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ def test_run_func_decl_single_tab_and_global_aligned():
pass


def test_run_long_aligned_func_decl():
# This function declaration is already aligned and should not be modified
input = """
typedef struct s_foo
{
\tlong int\tbar;
}\t\t\t\tt_foo;
long int\t\tfoooooooooooooooooooooooooooooo(t_foo *foooooooo1,
\t\t\t\t\tt_foo *foooooooo2, int barrrrrrrr1, int barrrrrrrr2);
"""
assert input == run_all(input)


def test_basic():
input = """
int main(int argc, char*argv[]){
Expand Down

0 comments on commit 089febf

Please sign in to comment.