File tree Expand file tree Collapse file tree 2 files changed +20
-22
lines changed
Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Original file line number Diff line number Diff 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- }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments