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 7C467C608C5; Wed, 21 Aug 2024 12:13:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7C467C608C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1724231580; bh=YhvQOjaxN6svnCteg0PA8trsxBnshtK7h284TcKSyVY=; 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=jSCJc8tlCGGPF88IDGWSquu/C1usv7pctp0uqmNpmAZmnV16NRbjxalVybx8px6Nl o1XQ6qfKvDpwJSZ7zUEuEArJFCCat/HTQgmIyf0yR+uf+VpvXzOgo4uMuHWKnEYgs3 9R6pWBDLzLPUIF7r4MEz3lcRfkNSaM0OyHhzx3M0= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [95.163.41.76]) (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 4EEB3C619A2 for ; Wed, 21 Aug 2024 12:00:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 4EEB3C619A2 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1sghCA-00000005aRz-3T68; Wed, 21 Aug 2024 11:59:59 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Wed, 21 Aug 2024 11:58:31 +0300 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD93D5A650E6D4F687E4F6F5905E40BA2B1E8FFD3C106D031C5182A05F5380850404BC35CF839C5F6BED27678DDAA806314CB1E4EEED6DF800DEFF80BD07D1CDB7966B8565FC0A35870 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE75644E22E05AA81AEB287FD4696A6DC2FA8DF7F3B2552694A4E2F5AFA99E116B42401471946AA11AF23F8577A6DFFEA7CB10A181A22533F518F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB55337566544261B242C40E191B645BB42EA94C866116D19C8C6DAE342382776B06CF7EC1389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0A3E989B1926288338941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6AEEA5BB16A939343CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE70BB89B22BF4660DC731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A53C68B90C0CE44C1C5002B1117B3ED6969C2998805FE2DEFC957033528158102E823CB91A9FED034534781492E4B8EEADADEF88395FA75C5FC79554A2A72441328621D336A7BC284946AD531847A6065A17B107DEF921CE79BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFF274DBB83F2F776C081F015988FC27F49D21CB56B86919A3F51611E0F7E0216780A302719471681BD14E51FF79EEE603885B666CB7E6D5A4B2A94BCD9D7316CEC49B791A6DA7677BC226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojegttVMu7AX8MX6CTG2dpaA== X-DA7885C5: 520A730678A297ACF255D290C0D534F97E704B639DAD8F6E3F554DCB3AC5130BF696185802C7F697D58A62FD7D354DCE90A62EE20EBFBCA6DE9604509FAD3A5C X-Mailru-Sender: 689FA8AB762F7393C6D0B12EA33CAA9B91931720688B6F74DAC77899D9C4377FC2A997E87FCC54C1E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [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 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" 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 --- .../{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 -- 2.45.2