diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/code.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testes/code.lua b/testes/code.lua index 4e00309f..543743fc 100644 --- a/testes/code.lua +++ b/testes/code.lua | |||
@@ -69,6 +69,20 @@ foo = function (f, a) | |||
69 | checkKlist(foo, {100000, 100000.0, -100000, -100000.0}) | 69 | checkKlist(foo, {100000, 100000.0, -100000, -100000.0}) |
70 | 70 | ||
71 | 71 | ||
72 | -- floats x integers | ||
73 | foo = function (t, a) | ||
74 | t[a] = 1; t[a] = 1.0 | ||
75 | t[a] = 1; t[a] = 1.0 | ||
76 | t[a] = 2; t[a] = 2.0 | ||
77 | t[a] = 0; t[a] = 0.0 | ||
78 | t[a] = 1; t[a] = 1.0 | ||
79 | t[a] = 2; t[a] = 2.0 | ||
80 | t[a] = 0; t[a] = 0.0 | ||
81 | end | ||
82 | |||
83 | checkKlist(foo, {1, 1.0, 2, 2.0, 0, 0.0}) | ||
84 | |||
85 | |||
72 | -- testing opcodes | 86 | -- testing opcodes |
73 | 87 | ||
74 | -- check that 'f' opcodes match '...' | 88 | -- check that 'f' opcodes match '...' |