aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adjust file metatables even in compat53.module mode (#67)Hisham Muhammad2024-08-291-8/+15
| | | | | * adjust file metatables even in compat53.module mode * apply tweaks only to LuaJIT; file:write() only to compat=none
* fix: math.tointeger accepts strings convertible to integers (#66)Hisham Muhammad2024-08-291-0/+1
|
* Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53)Hisham Muhammad2023-09-131-0/+14
|
* Improve `lua_getextraspace` tests.Philipp Janda2018-07-291-7/+21
|
* Add an implementation of `lua_getextraspace()`.Philipp Janda2018-07-271-4/+15
|
* lua_tointeger(x) rejects non-ints for Lua 5.1.Philipp Janda2018-01-131-0/+5
|
* Add Travis-CI integrationPhilipp Janda2017-09-181-4/+4
|
* Add tests for `luaL_load{buffer,file}x`.Philipp Janda2017-09-161-66/+91
| | | | | Fix bug regarding empty input in `lua_load`. Adapt error message and error code.
* Handle edge case for lua_pushlstring(). Add test.Philipp Janda2017-08-271-0/+3
|
* Add tests for luaL_tolstring and string.pack.Philipp Janda2017-08-091-2/+6
|
* Simplify utf8 helper function.Philipp Janda2016-02-051-1/+1
| | | | | There's no need for `compat_utf8_escape()` to be a vararg function. Remove default templates from `package.path`.
* Add tests for utf8 backport.Philipp Janda2016-01-241-0/+42
|
* Make '*' optional for file:lines() and file:read().Philipp Janda2015-08-241-3/+11
|
* Make '*' optional for io.read() and io.lines().Philipp Janda2015-08-231-1/+13
|
* assert() can handle non-string errors.Philipp Janda2015-08-181-2/+13
|
* Compress decimal escapes for string.format("%q").Philipp Janda2015-06-021-1/+1
| | | | | | | | Lua 5.2+ escape all control characters using decimal escape sequences. The previous code did the same but always used three decimals (possibly zero-padded) no matter the following character. The new version only uses all three decimals when another decimal character is following.
* Add luaL_execresult to C API.Philipp Janda2015-05-201-0/+5
|
* Adapt tests for compat53.module.Philipp Janda2015-04-261-55/+73
| | | | | Run tests for compat53.module if "module" is given as argument to the test script. Skip tests that don't apply in this case.
* split compat53 Lua module into separate modules that do/don't modify the ↵Philipp Janda2015-04-111-1/+1
| | | | global env
* backport Lua 5.2/5.3 buffer API for Lua 5.1Philipp Janda2015-01-211-0/+3
|
* luajit already has yieldable (x)pcall, add tests for code from compat52Philipp Janda2015-01-201-1/+345
|
* use table library from Lua 5.3 sources if availablePhilipp Janda2015-01-201-0/+3
|
* add lua_arith and lua_compare for Lua 5.1Philipp Janda2015-01-201-0/+9
|
* add table.sort, add code from lua-compat-5.2Philipp Janda2015-01-181-0/+40
|
* table library (except table.sort for now) respects metamethodsPhilipp Janda2015-01-171-1/+115
|
* add ipairs function that respects __indexPhilipp Janda2015-01-171-0/+10
|
* add new fields to math libraryPhilipp Janda2015-01-161-31/+85
|
* add initial implementation of c-api and licensePhilipp Janda2015-01-131-0/+109