diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-21 12:27:47 +0300 |
---|---|---|
committer | V1K1NGbg <victor@ilchev.com> | 2024-08-21 12:27:47 +0300 |
commit | 70ee04a13a49347dd17761cb0d730db9e66c0dc0 (patch) | |
tree | 79fbe6275ba50af83895a8963159063db7003619 | |
parent | 33d0e118f6f1306e10f3c13bf7a680c9548cbdaa (diff) | |
download | luarocks-lua-to-teal-migration.tar.gz luarocks-lua-to-teal-migration.tar.bz2 luarocks-lua-to-teal-migration.zip |
fun traverse remove testlua-to-teal-migration
-rw-r--r-- | spec/unit/fun_spec.lua | 11 |
1 files changed, 0 insertions, 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() | |||
58 | end) | 58 | end) |
59 | end) | 59 | end) |
60 | 60 | ||
61 | describe("fun.traverse", function() | ||
62 | it("recursively applies a function to each element in a given table and returns the results in a new table", function() | ||
63 | local t | ||
64 | |||
65 | t = {1, 2, {3, 4, {5, 6}}} | ||
66 | assert.same(fun.traverse(t, addOne), {2, 3, {4, 5, {6, 7}}}) | ||
67 | t = {1, 2, {}, {1, {}, 2}} | ||
68 | assert.same(fun.traverse(t, addOne), {2, 3, {}, {2, {}, 3}}) | ||
69 | end) | ||
70 | end) | ||
71 | |||
72 | describe("fun.filter", function() | 61 | describe("fun.filter", function() |
73 | it("filters the elements in the given table and returns the result in a new table", function() | 62 | it("filters the elements in the given table and returns the result in a new table", function() |
74 | local t | 63 | local t |