use #directory in lua test
This commit is contained in:
1 parent
f78a792d48
commit
a055c03de9
1 file changed
+1
-1
+1
-1
@@ -31,7 +31,7 @@ dofile_factorial :: proc(t: ^testing.T) {
|
|||||||
|
|
||||||
FACT_10 :: 3628800
|
FACT_10 :: 3628800
|
||||||
|
|
||||||
res := lua.L_dofile(state, "factorial.lua")
|
res := lua.L_dofile(state, #directory + "/factorial.lua")
|
||||||
testing.expectf(t, lua.Status(res) == .OK, "Expected L_dofile to return OKAY")
|
testing.expectf(t, lua.Status(res) == .OK, "Expected L_dofile to return OKAY")
|
||||||
|
|
||||||
fact := lua.L_checkinteger(state, -1)
|
fact := lua.L_checkinteger(state, -1)
|
||||||
|
|||||||
Reference in new issue
Block a user