Skip to content

Commit 0eb94ca

Browse files
Add problematic code snippet to unit tests
1 parent f45acc1 commit 0eb94ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Test/src/FormatStyle_unitest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,8 @@ for i, v in ipairs(values) do
16341634
end;
16351635
end;
16361636
local table1 = { 1, 2, 3 }
1637+
local opts = { on_exit = function() job = nil end }
1638+
local opts = { on_exit = function() job = nil; end };
16371639
)",
16381640
R"(
16391641
local func = testFunc
@@ -1649,6 +1651,9 @@ for i, v in ipairs(values) do
16491651
end
16501652
end
16511653
local table1 = { 1, 2, 3 }
1654+
local opts = { on_exit = function() job = nil end }
1655+
local opts = { on_exit = function() job = nil
1656+
end }
16521657
)",
16531658
style));
16541659

0 commit comments

Comments
 (0)