aboutsummaryrefslogtreecommitdiff
path: root/test/gleam/any_test.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-10-20 18:02:39 +0100
committerLouis Pilfold <louis@lpil.uk>2019-10-20 18:02:39 +0100
commitedaa30bda6520be7940e8c8fb8d0ec95947201e0 (patch)
tree482157a6b73536e9939dec81332db544f030d0e6 /test/gleam/any_test.gleam
parent81b3ca2b9b3dceedd62fbcef741548ae8a513601 (diff)
downloadgleam_stdlib-edaa30bda6520be7940e8c8fb8d0ec95947201e0.tar.gz
gleam_stdlib-edaa30bda6520be7940e8c8fb8d0ec95947201e0.zip
Rename map functions
Diffstat (limited to 'test/gleam/any_test.gleam')
-rw-r--r--test/gleam/any_test.gleam6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gleam/any_test.gleam b/test/gleam/any_test.gleam
index af184d8..376d454 100644
--- a/test/gleam/any_test.gleam
+++ b/test/gleam/any_test.gleam
@@ -222,14 +222,14 @@ pub fn field_test() {
let Ok(error_atom) = atom.from_string("error")
map.new()
- |> map.put(_, ok_atom, 1)
+ |> map.insert(_, ok_atom, 1)
|> any.from
|> any.field(_, ok_atom)
|> expect.equal(_, Ok(any.from(1)))
map.new()
- |> map.put(_, ok_atom, 3)
- |> map.put(_, error_atom, 1)
+ |> map.insert(_, ok_atom, 3)
+ |> map.insert(_, error_atom, 1)
|> any.from
|> any.field(_, ok_atom)
|> expect.equal(_, Ok(any.from(3)))