Skip to content

Commit 0f72c49

Browse files
committed
change test
1 parent c957831 commit 0f72c49

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

Test/src/FormatResult_unitest.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,25 +1036,3 @@ local t = {
10361036
}
10371037
)"));
10381038
}
1039-
1040-
TEST(Format, issue_121) {
1041-
EXPECT_TRUE(TestHelper::TestFormatted(
1042-
R"(
1043-
local t = { function ()
1044-
local t = 123
1045-
end }
1046-
1047-
local t = { {
1048-
okokok = 123
1049-
} }
1050-
)",
1051-
R"(
1052-
local t = { function()
1053-
local t = 123
1054-
end }
1055-
1056-
local t = { {
1057-
okokok = 123
1058-
} }
1059-
)"));
1060-
}

Test/src/FormatStyle_unitest.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,26 @@ local d = {
326326
a = 123,
327327
b = 123,
328328
}
329+
)",
330+
style));
331+
EXPECT_TRUE(TestHelper::TestFormatted(
332+
R"(
333+
local t = { function ()
334+
local t = 123
335+
end }
336+
337+
local t = { {
338+
okokok = 123
339+
} }
340+
)",
341+
R"(
342+
local t = { function()
343+
local t = 123
344+
end }
345+
346+
local t = { {
347+
okokok = 123,
348+
} }
329349
)",
330350
style));
331351
}

0 commit comments

Comments
 (0)