Skip to content

Commit 4ce69af

Browse files
committed
fix tests
1 parent d449360 commit 4ce69af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/glua_test.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ pub fn eval_returns_proper_errors_test() {
453453
)) =
454454
glua.eval(
455455
state:,
456-
code: "return io:write('something')",
456+
code: "local i = function(x) return x end; i:call(1)",
457457
using: decode.string,
458458
)
459459

460-
assert method == "write"
460+
assert method == "call"
461461

462462
let assert Error(glua.LuaRuntimeException(
463463
exception: glua.BadArith(operator:, args:),

0 commit comments

Comments
 (0)