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.
7 lines
194 B
Lua
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
|