aboutsummaryrefslogtreecommitdiff
path: root/tests (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
|
* Fix bit32 conversion issues for Lua 5.1 on 32 bitv0.10Philipp Janda2020-10-101-0/+1
| | | | | | | The default unsigned conversion procedure from upstream using `lua_Integer` as an intermediate value fails if `lua_Integer` has only 32 bits (as is the case on 32 bit Lua 5.1). This fix uses a `lua_Number` (hopefully double) as intermediate value in those cases.
* Add bit32 libraryPhilipp Janda2020-07-091-0/+9
|
* Make it usable on Lua 5.4v0.8Philipp Janda2020-07-081-0/+2
|
* Make test C module compile as C++ again.Philipp Janda2018-07-291-1/+1
|
* Improve `lua_getextraspace` tests.Philipp Janda2018-07-291-7/+21
|
* Add an implementation of `lua_getextraspace()`.Philipp Janda2018-07-272-4/+31
|
* lua_tointeger(x) rejects non-ints for Lua 5.1.Philipp Janda2018-01-132-1/+7
|
* Verify that lua_getuservalue returns type.Philipp Janda2018-01-131-2/+2
| | | | Closes #39.
* Add Travis-CI integrationPhilipp Janda2017-09-182-7/+11
|
* Add tests for `luaL_load{buffer,file}x`.Philipp Janda2017-09-162-66/+120
| | | | | 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-272-0/+13
|
* 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
|
* luaL_newmetatable sets __name on all Lua versions.Philipp Janda2015-07-111-1/+4
|
* 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-202-0/+12
|
* 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-212-0/+18
|
* 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-202-0/+46
|
* 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-132-0/+355