aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Pitts <julia.pitts@outlook.com>2024-06-16 20:11:36 -0700
committerLouis Pilfold <louis@lpil.uk>2024-06-18 13:03:23 +0100
commit63a3dc6945a12b4c6c0511cd29d5a0ff4d1bc7ad (patch)
tree76ef4543c58808bc47abf49d24935cda78c6ba4e
parent7be3f6d4138ae51b79f61699c85b96a4bf7d25bc (diff)
downloadgleam_stdlib-63a3dc6945a12b4c6c0511cd29d5a0ff4d1bc7ad.tar.gz
gleam_stdlib-63a3dc6945a12b4c6c0511cd29d5a0ff4d1bc7ad.zip
Update the test to make use of the output type being different than the input type.
-rw-r--r--test/gleam/set_test.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gleam/set_test.gleam b/test/gleam/set_test.gleam
index 46d4d13..597fab1 100644
--- a/test/gleam/set_test.gleam
+++ b/test/gleam/set_test.gleam
@@ -86,8 +86,8 @@ pub fn fold_test() {
pub fn map_test() {
[1, 2, 3, 4]
|> set.from_list
- |> set.map(with: fn(x) { x * 2 })
- |> should.equal(set.from_list([2, 4, 6, 8]))
+ |> set.map(with: int.to_string)
+ |> should.equal(set.from_list(["1", "2", "3", "4"]))
}
pub fn filter_test() {