From 3ff725e654ea01c32852f856413c060e8e2fa80d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 21 Jan 2022 21:34:16 +0100 Subject: indents(c): fix ternary --- tests/indent/cpp_spec.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/indent/cpp_spec.lua') diff --git a/tests/indent/cpp_spec.lua b/tests/indent/cpp_spec.lua index 693279b89..ab7ae407f 100644 --- a/tests/indent/cpp_spec.lua +++ b/tests/indent/cpp_spec.lua @@ -15,7 +15,6 @@ describe("indent C++:", function() run:whole_file({ "c/", "cpp/" }, { expected_failures = { -- C - "c/ternary.c", "c/preproc_func.c", "c/label.c", "c/comment.c", @@ -44,7 +43,7 @@ describe("indent C++:", function() run:new_line("c/string.c", { on_line = 4, text = '"brave new "', indent = 4 }) run:new_line("c/struct.c", { on_line = 4, text = "int y;", indent = 8 }) run:new_line("c/switch.c", { on_line = 3, text = "x++;", indent = 12 }) - run:new_line("c/ternary.c", { on_line = 4, text = ": (x == 0) : 0", indent = 8 }, "expected failure", XFAIL) + run:new_line("c/ternary.c", { on_line = 4, text = ": (x == 0) : 0", indent = 8 }) -- the line after inserted one will be left with wrong indent but we only care about the inserted one run:new_line("c/no_braces.c", { on_line = 4, text = "x++;", indent = 8 }) run:new_line("c/no_braces.c", { on_line = 7, text = "x++;", indent = 8 }) -- cgit v1.2.3-70-g09d2