In Lua 5.1, now-deprecated loadstring was used instead of load. Due to this incompatibility, make test emits errors:
$ make test
luarocks test
djot 0.2.0-1 depends on lua >= 5.1 (5.1-1 provided by VM)
Error running test filters.test line 3:
./djot/filter.lua:141: bad argument #1 to 'load' (function expected, got string)
Error running test filters.test line 17:
./djot/filter.lua:141: bad argument #1 to 'load' (function expected, got string)
Error running test filters.test line 42:
./djot/filter.lua:141: bad argument #1 to 'load' (function expected, got string)
250 tests completed in 0.020 s
PASSED: 247
FAILED: 0
ERRORS: 3
In Lua 5.1, now-deprecated
loadstring
was used instead ofload
. Due to this incompatibility,make test
emits errors: