aboutsummaryrefslogtreecommitdiff
path: root/testes/code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/code.lua')
-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 '...'