Details (do not affect regular code)

* Avoids multiple definitions of 'lua_assert' in test file.
* Smaller C-stack limit in test mode.
* Note in the manual about the use of false
* Extra test for constant reuse.
This commit is contained in:
Roberto Ierusalimschy
2020-12-07 11:17:30 -03:00
parent 23051e830a
commit e2ea3b31c9
4 changed files with 31 additions and 3 deletions

View File

@@ -55,6 +55,20 @@ end
checkKlist(foo, {3.78/4, -3.78/4, -3.79/4})
foo = function (f, a)
f(100 * 1000)
f(100.0 * 1000)
f(-100 * 1000)
f(-100 * 1000.0)
f(100000)
f(100000.0)
f(-100000)
f(-100000.0)
end
checkKlist(foo, {100000, 100000.0, -100000, -100000.0})
-- testing opcodes
-- check that 'f' opcodes match '...'