Skip to content

Commit

Permalink
#245 update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Nov 11, 2022
1 parent acb7738 commit 217a77b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/comptests/inputs/lua-Harness-200-examples.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ local function local_factorial (n)
end
equals(local_factorial(7), 5040, "factorial (recursive)")

local function loop_factorial (n: integer)
local function loop_factorial (n)
local a = 1
for i = 1, n, 1 do
a = a*i
Expand Down
4 changes: 2 additions & 2 deletions tests/comptests/inputs/lua-Harness-223-iterator.t
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ do --[[ permutations ]]
if n <= 1 then -- nothing to change?
coroutine.yield(a)
else
for i=1,(@integer n) do
for i=1,n do
-- put i-th element as the last one
a[n], a[i] = a[i], a[n]
-- generate all permutations of the other elements
Expand Down Expand Up @@ -152,7 +152,7 @@ do --[[ permutations with wrap ]]
if n <= 1 then -- nothing to change?
coroutine.yield(a)
else
for i=1,(@integer n) do
for i=1,n do
-- put i-th element as the last one
a[n], a[i] = a[i], a[n]
-- generate all permutations of the other elements
Expand Down

0 comments on commit 217a77b

Please sign in to comment.