aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/iterator_test.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gleam/iterator_test.gleam b/test/gleam/iterator_test.gleam
index d8da969..67637f0 100644
--- a/test/gleam/iterator_test.gleam
+++ b/test/gleam/iterator_test.gleam
@@ -377,11 +377,11 @@ pub fn group_test() {
pub fn reduce_test() {
iterator.empty()
- |> iterator.reduce(with: fn(x, y) { x + y })
+ |> iterator.reduce(with: fn(acc, x) { acc + x })
|> should.equal(Error(Nil))
iterator.from_list([1, 2, 3, 4, 5])
- |> iterator.reduce(with: fn(x, y) { x + y })
+ |> iterator.reduce(with: fn(acc, x) { acc + x })
|> should.equal(Ok(15))
}