[Tarantool-patches] [PATCH luajit v3 19/29] test: remove string.gfind assert in PUC-Rio test
Sergey Kaplun
skaplun at tarantool.org
Tue Apr 13 16:27:19 MSK 2021
In Lua 5.1 function `string.gfind()` was renamed to `string.gmatch()`.
You can use it if Lua 5.1 is built with compile-time option
`-DLUA_COMPAT_GFIND`.
This built-in is removed from LuaJIT via commit
de5568e0eaf22d2c7d58c2cbd9060460abc4ff2f (Remove Lua 5.0 compatibility
defines.).
This patch removes test checking that `string.gfind()` and
`string.gmatch() is the same function.
Part of tarantool/tarantool#5845
Part of tarantool/tarantool#4473
---
test/PUC-Rio-Lua-5.1-tests/pm.lua | 1 -
1 file changed, 1 deletion(-)
diff --git a/test/PUC-Rio-Lua-5.1-tests/pm.lua b/test/PUC-Rio-Lua-5.1-tests/pm.lua
index fa125dc9..b159b6bd 100644
--- a/test/PUC-Rio-Lua-5.1-tests/pm.lua
+++ b/test/PUC-Rio-Lua-5.1-tests/pm.lua
@@ -223,7 +223,6 @@ assert(string.gsub("a alo b hi", "%w%w+", t) == "a ALO b HI")
-- tests for gmatch
-assert(string.gfind == string.gmatch)
local a = 0
for i in string.gmatch('abcde', '()') do assert(i == a+1); a=i end
assert(a==6)
--
2.31.0
More information about the Tarantool-patches
mailing list