[Tarantool-patches] [WIP luajit 05/15] test: change tests to match de5568e

Sergey Kaplun skaplun at tarantool.org
Thu Mar 4 13:23:52 MSK 2021


Functions math.mod() and string.gfind() were removed in commit de5568e
in original LuaJIT repository.

Part of tarantool/tarantool#4064
Part of tarantool/tarantool#4473
---
Author: Mergen Imeev <imeevma at gmail.com>
Sergey Kaplun <skaplun at tarantool.org>: glanced commit message

 test/LuaJIT-tests/lib/contents.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/LuaJIT-tests/lib/contents.lua b/test/LuaJIT-tests/lib/contents.lua
index a1d8b9b..e9fc1bc 100644
--- a/test/LuaJIT-tests/lib/contents.lua
+++ b/test/LuaJIT-tests/lib/contents.lua
@@ -55,7 +55,7 @@ do --- math
 end
 
 do --- pre-5.2 math +lua<5.2 -compat5.2
-  assert(math.mod)
+  assert(not math.mod)
   assert(math.log10)
 end
 
@@ -69,7 +69,7 @@ do --- string
 end
 
 do --- pre-5.2 string +lua<5.2 -compat5.2
-  assert(string.gfind)
+  assert(not string.gfind)
 end
 
 do --- 5.2 string +lua>=5.2
-- 
2.28.0



More information about the Tarantool-patches mailing list