From e2ea3b31c94bb3e1da27c233661cb2a16699c685 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 7 Dec 2020 11:17:30 -0300 Subject: 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. --- testes/code.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'testes') 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 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 '...' -- cgit v1.2.3-55-g6feb