use #directory in lua test

This commit is contained in:
Laytan Laats
2024-07-22 01:11:01 +02:00
parent f78a792d48
commit a055c03de9
+1 -1
View File
@@ -31,7 +31,7 @@ dofile_factorial :: proc(t: ^testing.T) {
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")
fact := lua.L_checkinteger(state, -1)