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 10B9EC6E78F; Thu, 22 Aug 2024 16:44:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 10B9EC6E78F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1724334262; bh=EZKPGbfNfgLU6SecuCLvcqmH/vq4v7lpw/7tDvEp5uo=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=W7CsF8nGh0M97sn4jLZ9MSzEI5TZmwB2iXUEH0CS7m09/yYmgY8+hEU2DHs05ywFB TYrK4Pq6nmuV9xsb71Ax3EmpnWU+v7/FzMHxYljdF+1yIpMV3gva1JSHFP5BlAefUk bkp8DSzut7IUkWXZat6MRQ9cTmE6UAPfKL7bSppY= Received: from smtp30.i.mail.ru (smtp30.i.mail.ru [95.163.41.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 3047EC6E788 for ; Thu, 22 Aug 2024 16:44:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3047EC6E788 Received: by smtp30.i.mail.ru with esmtpa (envelope-from ) id 1sh86t-0000000Gl6v-2ntz; Thu, 22 Aug 2024 16:44:20 +0300 Content-Type: multipart/alternative; boundary="------------0UYPH3Wwjcu5EaCv0F0fAJnM" Message-ID: Date: Thu, 22 Aug 2024 16:44:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9A67092BE052B1D9E3190851043EE9FB38ADAADDDC22C6177182A05F538085040D413A0CF4B2493E5479CDAE959BF64245549CBFCF9D3C5FB82BBE18FB0487B48705A2F0185E57886 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AB5815F4DE05345AEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063715F166F2542EEE4C8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D829FBDBE64B7DB9741961CF0F4415001D2B8CC43C89E7E734CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F7900637F3E38EE449E3E2AE389733CBF5DBD5E9B5C8C57E37DE458BD9DD9810294C998ED8FC6C240DEA76428AA50765F79006374F6569AC0C4BE657D32BA5DBAC0009BE395957E7521B51C2330BD67F2E7D9AF1090A508E0FED6299176DF2183F8FC7C081C726BC2B329815B3661434B16C20ACC84D3B47A649675FE827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B47E915A23788DB9575ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A535075B4A38AC13A15002B1117B3ED696F98D91390ADAC15DF5FEB6EB1EB183FD823CB91A9FED034534781492E4B8EEAD2B25D9E4C92BC8ACBDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF21F3C0E0C6F7ED3CB6B09B1594FDA80D2AEB0FC78A71CD26A544268CAF4EEC56CEAE7BAE235C0E402FB0CAD32ADFBF84FCA4D635C57614320CDF0639635EF4BCD1607922A0561BDC5F4332CA8FE04980913E6812662D5F2AB9AF64DB4688768036DF5FE9C0001AF333F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbUwDRTee1Xov4Ynq60zazw== X-Mailru-Sender: 520A125C2F17F0B1E52FEF5D219D6140D186B02CBDDFC6BA720FCD7EF74E1B2FBEE5682F37A09E340152A3D17938EB451EB5A0BCEC6A560B3DDE9B364B0DF289BE2DA36745F2EEB5CEBA01FB949A1F1EEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 28/45] test: enable LuaJIT test 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 Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This is a multi-part message in MIME format. --------------0UYPH3Wwjcu5EaCv0F0fAJnM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sergey, On 21.08.2024 11:58, Sergey Kaplun wrote: > This patch moves the aforementioned test from the to the > directory (with slightly renaming to be consistent with other names), > includes it in , and names the subtests. > > Part of tarantool/tarantool#9398 > --- thanks for the patch! LGTM > .../{misc/recurse_deep.lua => lang/deep_recursion.lua} | 8 +++----- > test/LuaJIT-tests/lang/index | 1 + > 2 files changed, 4 insertions(+), 5 deletions(-) > rename test/LuaJIT-tests/{misc/recurse_deep.lua => lang/deep_recursion.lua} (84%) > > diff --git a/test/LuaJIT-tests/misc/recurse_deep.lua b/test/LuaJIT-tests/lang/deep_recursion.lua > similarity index 84% > rename from test/LuaJIT-tests/misc/recurse_deep.lua > rename to test/LuaJIT-tests/lang/deep_recursion.lua > index 9b9af295..732dd529 100644 > --- a/test/LuaJIT-tests/misc/recurse_deep.lua > +++ b/test/LuaJIT-tests/lang/deep_recursion.lua > @@ -1,5 +1,4 @@ > - > -do > +do --- Recursion sum. > local function sum(n) > if n == 1 then return 1 end > return n + sum(n-1) > @@ -7,7 +6,7 @@ do > assert(sum(200) == 20100) > end > > -do > +do --- Recursion wiht pcall. > local pcall = pcall > local tr1 > local x = 0 > @@ -19,11 +18,10 @@ do > assert(tr1(200) == true and x == 200) > end > > -do > +do --- Recursion fibonacci. > local function fib(n) > if n < 2 then return 1 end > return fib(n-2) + fib(n-1) > end > assert(fib(15) == 987) > end > - > diff --git a/test/LuaJIT-tests/lang/index b/test/LuaJIT-tests/lang/index > index 726c8d16..5c9e7ea4 100644 > --- a/test/LuaJIT-tests/lang/index > +++ b/test/LuaJIT-tests/lang/index > @@ -6,6 +6,7 @@ catch_wrap.lua > compare.lua > compare_nan.lua > constant > +deep_recursion.lua > dualnum.lua > for.lua > hook_active.lua --------------0UYPH3Wwjcu5EaCv0F0fAJnM Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Sergey,

On 21.08.2024 11:58, Sergey Kaplun wrote:
This patch moves the aforementioned test from the <misc> to the <lang/>
directory (with slightly renaming to be consistent with other names),
includes it in <index>, and names the subtests.

Part of tarantool/tarantool#9398
---
thanks for the patch! LGTM
 .../{misc/recurse_deep.lua => lang/deep_recursion.lua}    | 8 +++-----
 test/LuaJIT-tests/lang/index                              | 1 +
 2 files changed, 4 insertions(+), 5 deletions(-)
 rename test/LuaJIT-tests/{misc/recurse_deep.lua => lang/deep_recursion.lua} (84%)

diff --git a/test/LuaJIT-tests/misc/recurse_deep.lua b/test/LuaJIT-tests/lang/deep_recursion.lua
similarity index 84%
rename from test/LuaJIT-tests/misc/recurse_deep.lua
rename to test/LuaJIT-tests/lang/deep_recursion.lua
index 9b9af295..732dd529 100644
--- a/test/LuaJIT-tests/misc/recurse_deep.lua
+++ b/test/LuaJIT-tests/lang/deep_recursion.lua
@@ -1,5 +1,4 @@
-
-do
+do --- Recursion sum.
   local function sum(n)
     if n == 1 then return 1 end
     return n + sum(n-1)
@@ -7,7 +6,7 @@ do
   assert(sum(200) == 20100)
 end
 
-do
+do --- Recursion wiht pcall.
   local pcall = pcall
   local tr1
   local x = 0
@@ -19,11 +18,10 @@ do
   assert(tr1(200) == true and x == 200)
 end
 
-do
+do --- Recursion fibonacci.
   local function fib(n)
     if n < 2 then return 1 end
     return fib(n-2) + fib(n-1)
   end
   assert(fib(15) == 987)
 end
-
diff --git a/test/LuaJIT-tests/lang/index b/test/LuaJIT-tests/lang/index
index 726c8d16..5c9e7ea4 100644
--- a/test/LuaJIT-tests/lang/index
+++ b/test/LuaJIT-tests/lang/index
@@ -6,6 +6,7 @@ catch_wrap.lua
 compare.lua
 compare_nan.lua
 constant
+deep_recursion.lua
 dualnum.lua
 for.lua
 hook_active.lua
--------------0UYPH3Wwjcu5EaCv0F0fAJnM--