Browse Source

use #directory in lua test

Laytan Laats 1 year ago
parent
commit
a055c03de9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/vendor/lua/5.4/test_vendor_lua.5.4.odin

+ 1 - 1
tests/vendor/lua/5.4/test_vendor_lua.5.4.odin

@@ -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)