mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
use #directory in lua test
This commit is contained in:
+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