From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 31EF66BD38; Fri, 26 Mar 2021 10:53:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 31EF66BD38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616745223; bh=QDIf/ZARhrjCEghidtPQbmK8MUmb2xZb3Y3bp1zjTCA=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Ih3/3iByPSdm8KVcsWyRxqDy2oiGdYRLt6wOLIgfAmLYvm1ZmVYrnEUPu8t9/X08E z2XAIn+ya5bws7nHkGt31/iDN2tZVwl5I//j1qNFoPLi6W1nHbGdShZnLjsor/hJBq lkm3TdS9nqe8PPm0XU9sRoBo3B1YNbPv3UvSLeeI= Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id DA70C68F48 for ; Fri, 26 Mar 2021 10:44:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DA70C68F48 Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1lPh90-00042u-Ss; Fri, 26 Mar 2021 10:44:35 +0300 To: Sergey Ostanevich , Igor Munkin Date: Fri, 26 Mar 2021 10:43:02 +0300 Message-Id: <946be811cd2557fb65459c0de499cdc62229fdd6.1616743343.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE9587C800CEAD38A69F042767B24605C2B182A05F5380850400B562BB0616A9FC0F90CF666229602DB5F820FBFEED3E2DDEEFA62D1DBAED37B X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72F22E6DC541F75D9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637A9E1EE47BE02EAD28638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C5DD32608FC869F5DF76E511EEE780F2F2F22CB656E8DA2FDA471835C12D1D9774AD6D5ED66289B5278DA827A17800CE77E7E81EEA8A9722B8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B601F8F2FECC0250C8CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CFC5EA940A35A165FF2DBA43225CD8A89F890A246B268E114EA91E23F1B6B78B78B5C8C57E37DE458BEDA766A37F9254B7 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C97831181D79FD8B28A83599F3B6BFDA6AA5C4 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C5DD32608FC869F5DF76E511EEE780F2F2F22CB656E8DA2FD9C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EFF532FBFD8162E58C699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D342833AC5E8E9ACF1C8AE6F94884CCB72904C138E47C2C560568C669B7A5061723F270A5F91DE9E6581D7E09C32AA3244C0E47DCC69C825013B17D2936717800A7B018FE5BB746DCD1927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAgVzirxwq9KLg== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB4F1908041342B7EBDC37CE200D0FCECB704E0D8F13B9C4085F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 19/30] test: remove assert for string.gfind check X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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. 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-Lua-5.1-tests/pm.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/test/PUC-Lua-5.1-tests/pm.lua b/test/PUC-Lua-5.1-tests/pm.lua index fa125dc..b159b6b 100644 --- a/test/PUC-Lua-5.1-tests/pm.lua +++ b/test/PUC-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