Skip to content

Commit

Permalink
Fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cardillan committed Jan 19, 2024
1 parent 26733f4 commit f8a8c5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ def foo(n)
end
print(foo(10) + foo(20))
""",
createInstruction(OP, "rand", var(0), "10"),
createInstruction(OP, "rand", "__fn0_t", "10"),
createInstruction(SET, var(0), "__fn0_t"),
createInstruction(OP, "rand", "__fn0_t", "20"),
createInstruction(OP, "add", var(2), var(0), "__fn0_t"),
createInstruction(PRINT, var(2)),
createInstruction(END)

);
}

Expand Down

0 comments on commit f8a8c5b

Please sign in to comment.