Skip to content

Commit c68cb69

Browse files
committed
fix Lua5.1 compatible for test
1 parent f865d9e commit c68cb69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test.impl.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,14 +591,14 @@ f
591591
x
592592
--]]
593593

594-
range():take(5):group(2):map(table.unpack):each(print)
594+
range():take(5):group(2):map(_G.unpack or table.unpack):each(print)
595595
--[[OUTPUT
596596
1,2
597597
3,4
598598
5
599599
--]]
600600

601-
iter {1,2,2,3,3,4,5} :groupby(_"_2, _2"):map(table.unpack)
601+
iter {1,2,2,3,3,4,5} :groupby(_"_2, _2"):map(_G.unpack or table.unpack)
602602
:each(print)
603603
--[[OUTPUT
604604
1
@@ -608,7 +608,7 @@ iter {1,2,2,3,3,4,5} :groupby(_"_2, _2"):map(table.unpack)
608608
5
609609
--]]
610610

611-
array {1,2,2,3,3,4,5} :packgroupby():flatmap(array):map(table.unpack)
611+
array {1,2,2,3,3,4,5} :packgroupby():flatmap(array):map(_G.unpack or table.unpack)
612612
:each(print)
613613
--[[OUTPUT
614614
1

0 commit comments

Comments
 (0)