aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-07 11:17:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-07 11:17:30 -0300
commite2ea3b31c94bb3e1da27c233661cb2a16699c685 (patch)
tree1d817c8d90e5fbd2c52dff18383a085f2bc847c1 /testes
parent23051e830a8b212f831443eb888e93e30fa8bb19 (diff)
downloadlua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.tar.gz
lua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.tar.bz2
lua-e2ea3b31c94bb3e1da27c233661cb2a16699c685.zip
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.
Diffstat (limited to 'testes')
-rw-r--r--testes/code.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/testes/code.lua b/testes/code.lua
index 1f971cd7..4e00309f 100644
--- a/testes/code.lua
+++ b/testes/code.lua
@@ -55,6 +55,20 @@ end
55checkKlist(foo, {3.78/4, -3.78/4, -3.79/4}) 55checkKlist(foo, {3.78/4, -3.78/4, -3.79/4})
56 56
57 57
58foo = function (f, a)
59 f(100 * 1000)
60 f(100.0 * 1000)
61 f(-100 * 1000)
62 f(-100 * 1000.0)
63 f(100000)
64 f(100000.0)
65 f(-100000)
66 f(-100000.0)
67 end
68
69checkKlist(foo, {100000, 100000.0, -100000, -100000.0})
70
71
58-- testing opcodes 72-- testing opcodes
59 73
60-- check that 'f' opcodes match '...' 74-- check that 'f' opcodes match '...'