From 70ee04a13a49347dd17761cb0d730db9e66c0dc0 Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Wed, 21 Aug 2024 12:27:47 +0300 Subject: fun traverse remove test --- spec/unit/fun_spec.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/spec/unit/fun_spec.lua b/spec/unit/fun_spec.lua index bffb60d7..774aa937 100644 --- a/spec/unit/fun_spec.lua +++ b/spec/unit/fun_spec.lua @@ -58,17 +58,6 @@ describe("luarocks.fun #unit", function() end) end) - describe("fun.traverse", function() - it("recursively applies a function to each element in a given table and returns the results in a new table", function() - local t - - t = {1, 2, {3, 4, {5, 6}}} - assert.same(fun.traverse(t, addOne), {2, 3, {4, 5, {6, 7}}}) - t = {1, 2, {}, {1, {}, 2}} - assert.same(fun.traverse(t, addOne), {2, 3, {}, {2, {}, 3}}) - end) - end) - describe("fun.filter", function() it("filters the elements in the given table and returns the result in a new table", function() local t -- cgit v1.2.3-55-g6feb