aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2023-06-24 13:00:02 +0200
committerLouis Pilfold <louis@lpil.uk>2023-06-24 12:04:38 +0100
commit1b52b08098c63fdd4981096dbc0de88071214edf (patch)
treef32951aec97f305efcc9d026b483ed3e31b2fcb7 /test
parent26271b6c8165854ddc2d959c7eaf070a6c14da1f (diff)
downloadgleam_stdlib-1b52b08098c63fdd4981096dbc0de88071214edf.tar.gz
gleam_stdlib-1b52b08098c63fdd4981096dbc0de88071214edf.zip
Revert "Add `list.map3`"
This reverts commit c228035cb43bc72da6b68c3b9067c314046279e9.
Diffstat (limited to 'test')
-rw-r--r--test/gleam/list_test.gleam23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam
index 0e3f8a1..b44c53c 100644
--- a/test/gleam/list_test.gleam
+++ b/test/gleam/list_test.gleam
@@ -189,29 +189,6 @@ pub fn map2_test() {
list.map2(list, list, int.add)
}
-pub fn map3_test() {
- let add3 = fn(x, y, z) { x + y + z }
-
- list.map3([], [1, 2, 3], [4, 5, 6], add3)
- |> should.equal([])
-
- list.map3([1, 2, 3], [], [4, 5, 6], add3)
- |> should.equal([])
-
- list.map3([1, 2, 3], [4, 5, 6], [], add3)
- |> should.equal([])
-
- list.map3([1, 2, 3], [4, 5], [6], add3)
- |> should.equal([11])
-
- list.map3([1, 2, 3], [4, 5, 6], [7, 8, 9], add3)
- |> should.equal([12, 15, 18])
-
- // TCO test
- let list = list.repeat(0, recursion_test_cycles)
- list.map3(list, list, list, add3)
-}
-
pub fn map_fold_test() {
[1, 2, 3, 4]
|> list.map_fold(from: 0, with: fn(acc, i) { #(acc + i, i * 2) })