aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/list_test.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam
index fa87952..b7470ac 100644
--- a/test/gleam/list_test.gleam
+++ b/test/gleam/list_test.gleam
@@ -101,8 +101,8 @@ pub fn map_test() {
pub fn map_reduce_test() {
[1, 2, 3, 4]
- |> list.map_reduce(from: 0, with: fn(acc, i) { tuple(acc + i, i * 2) })
- |> should.equal(tuple(10, [2, 4, 6, 8]))
+ |> list.map_reduce(from: 0, with: fn(i, acc) { tuple(i * 2, acc + i) })
+ |> should.equal(tuple([2, 4, 6, 8], 10))
}
pub fn try_map_test() {