Files
Lua-compilateur/tests/reference.lua
T
BlackAngelTV ea6fb41a48 test: compare compiled modules with the Lua 5.4 interpreter
The generated code can only be trusted if it behaves like the reference
implementation, so the same script runs both ways and the outputs are diffed.
2026-11-18 08:48:05 +01:00

7 lines
194 B
Lua

-- Reference driver: runs the same Lua module with the stock interpreter.
local path = arg[1] or "tests/lua/core.lua"
local results = dofile(path)
for i = 1, #results do
print(results[i])
end