diff options
author | Kayla Washburn <mckayla@hey.com> | 2023-04-04 09:48:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 16:48:23 +0100 |
commit | 3d40ff82b6e68b89c31f1326cdc3db5a8928a6f7 (patch) | |
tree | ad7d7897ed9dc4844c1fc4cbc1140b058bd51fcd /test | |
parent | 909cfc9878f39b312e86e2d888b9c523a8dc67cf (diff) | |
download | gleam_stdlib-3d40ff82b6e68b89c31f1326cdc3db5a8928a6f7.tar.gz gleam_stdlib-3d40ff82b6e68b89c31f1326cdc3db5a8928a6f7.zip |
`iterator.each` (#431)
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/iterator_test.gleam | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gleam/iterator_test.gleam b/test/gleam/iterator_test.gleam index 81c790e..5348183 100644 --- a/test/gleam/iterator_test.gleam +++ b/test/gleam/iterator_test.gleam @@ -584,3 +584,9 @@ pub fn length_test() { |> iterator.length |> should.equal(0) } + +pub fn each_test() { + use it <- iterator.each(iterator.from_list([1])) + it + |> should.equal(1) +} |