diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-09-10 18:59:09 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-09-10 18:59:09 +0100 |
commit | 1d6a4b91d7db1cd7d5c66a9a0e5bc4be22e6099b (patch) | |
tree | 2f62b6cdeab79ad265b0fb5b1bf46a86d7b57b66 /test | |
parent | 32ac4ec2523e7226cecbf73a1708cd36ea3b3eb1 (diff) | |
download | gleam_stdlib-1d6a4b91d7db1cd7d5c66a9a0e5bc4be22e6099b.tar.gz gleam_stdlib-1d6a4b91d7db1cd7d5c66a9a0e5bc4be22e6099b.zip |
JS map decoding
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/dynamic_test.gleam | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam index c93210b..b901c86 100644 --- a/test/gleam/dynamic_test.gleam +++ b/test/gleam/dynamic_test.gleam @@ -718,18 +718,16 @@ pub fn typed_tuple6_test() { ))) } -if erlang { - pub fn map_test() { - map.new() - |> dynamic.from - |> dynamic.map - |> should.equal(Ok(map.new())) +pub fn map_test() { + map.new() + |> dynamic.from + |> dynamic.map + |> should.equal(Ok(map.new())) - 1 - |> dynamic.from - |> dynamic.map - |> should.equal(Error(DecodeError(expected: "Map", found: "Int"))) - } + 1 + |> dynamic.from + |> dynamic.map + |> should.equal(Error(DecodeError(expected: "Map", found: "Int"))) } pub fn list_test() { |