[Tarantool-patches] [PATCH v1 2/7] tests: change tests to match de5568e

imeevma at tarantool.org imeevma at tarantool.org
Wed Jan 20 18:10:04 MSK 2021


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

Part of tarantool/tarantool#4064
---
 test/LuaJIT-test-cleanup/lib/contents.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/LuaJIT-test-cleanup/lib/contents.lua b/test/LuaJIT-test-cleanup/lib/contents.lua
index a1d8b9b..e9fc1bc 100644
--- a/test/LuaJIT-test-cleanup/lib/contents.lua
+++ b/test/LuaJIT-test-cleanup/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.25.1



More information about the Tarantool-patches mailing list