diff options
Diffstat (limited to 'tests/indent/c_spec.lua')
| -rw-r--r-- | tests/indent/c_spec.lua | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/indent/c_spec.lua b/tests/indent/c_spec.lua index 203dc7be..4beaba76 100644 --- a/tests/indent/c_spec.lua +++ b/tests/indent/c_spec.lua @@ -13,15 +13,9 @@ describe("indent C:", function() runner:whole_file(".", { expected_failures = { "./ternary.c", - "./string.c", "./preproc_func.c", - "./preproc_cond.c", - "./no_braces.c", "./label.c", - "./func.c", - "./expr.c", "./comment.c", - "./array.c", }, }) end) @@ -36,14 +30,14 @@ describe("indent C:", function() runner:new_line("label.c", { on_line = 3, text = "normal:", indent = 0 }, "expected failure", XFAIL) runner:new_line("loop.c", { on_line = 3, text = "x++;", indent = 8 }) runner:new_line("preproc_cond.c", { on_line = 5, text = "x++;", indent = 4 }) - runner:new_line("preproc_func.c", { on_line = 3, text = "x++; \\", indent = 8 }) - runner:new_line("string.c", { on_line = 1, text = "brave new \\", indent = 0 }, "expected failure", XFAIL) + runner:new_line("preproc_func.c", { on_line = 3, text = "x++; \\", indent = 8 }, "expected failure", XFAIL) + runner:new_line("string.c", { on_line = 1, text = "brave new \\", indent = 0 }) runner:new_line("string.c", { on_line = 4, text = '"brave new "', indent = 4 }) runner:new_line("struct.c", { on_line = 4, text = "int y;", indent = 8 }) runner:new_line("switch.c", { on_line = 3, text = "x++;", indent = 12 }) - runner:new_line("ternary.c", { on_line = 4, text = ": (x == 0) : 0", indent = 8 }) + runner:new_line("ternary.c", { on_line = 4, text = ": (x == 0) : 0", indent = 8 }, "expected failure", XFAIL) -- the line after inserted one will be left with wrong indent but we only care about the inserted one - runner:new_line("no_braces.c", { on_line = 4, text = "x++;", indent = 8 }, "expected failure", XFAIL) + runner:new_line("no_braces.c", { on_line = 4, text = "x++;", indent = 8 }) runner:new_line("no_braces.c", { on_line = 7, text = "x++;", indent = 8 }) runner:new_line("no_braces.c", { on_line = 10, text = "x++;", indent = 8 }) end) |
