[Tarantool-patches] [PATCH luajit 07/36] test: remove <misc/fori_coerce.lua> LuaJIT test
Sergey Kaplun
skaplun at tarantool.org
Wed Aug 14 16:55:49 MSK 2024
This patch removes the aforementioned test since it is part of the
<lang/for.lua> test.
Part of tarantool/tarantool#9398
---
test/LuaJIT-tests/misc/fori_coerce.lua | 33 --------------------------
1 file changed, 33 deletions(-)
delete mode 100644 test/LuaJIT-tests/misc/fori_coerce.lua
diff --git a/test/LuaJIT-tests/misc/fori_coerce.lua b/test/LuaJIT-tests/misc/fori_coerce.lua
deleted file mode 100644
index 7330943b..00000000
--- a/test/LuaJIT-tests/misc/fori_coerce.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-
-do
- local n = 1
- local x = 0
- for i=1,20 do
- for j=n,100 do x = x + 1 end
- if i == 13 then n = "2" end
- end
- assert(x == 1993)
-end
-
-do
- local n = 1
- local x = 0
- for i=1,20 do
- for j=n,100 do x = x + 1 end
- if i == 10 then n = "2" end
- end
- assert(x == 1990)
-end
-
-do
- local function f()
- local n = 1
- local x = 0
- for i=1,20 do
- for j=n,100 do x = x + 1 end
- if i == 10 then n = "x" end
- end
- end
- assert(not pcall(f))
-end
-
--
2.45.2
More information about the Tarantool-patches
mailing list