diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-04-24 23:36:29 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-04-24 23:36:29 +0100 |
commit | b688779c0859ef9da2569bc77475457786fdc490 (patch) | |
tree | ff9910f036486f79424254ce0c0b0e8916056b62 /test | |
parent | 6b34f8b616d4ec169ebf8d1e5a26d78ceebc8a59 (diff) | |
download | gleam_stdlib-b688779c0859ef9da2569bc77475457786fdc490.tar.gz gleam_stdlib-b688779c0859ef9da2569bc77475457786fdc490.zip |
Initial map documentation
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/map_test.gleam | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gleam/map_test.gleam b/test/gleam/map_test.gleam index 27e47f6..c19cfcd 100644 --- a/test/gleam/map_test.gleam +++ b/test/gleam/map_test.gleam @@ -10,6 +10,13 @@ pub fn from_list_test() { |> map.from_list |> map.size |> should.equal(_, 2) + + [ + tuple(1, 0), + tuple(1, 1), + ] + |> map.from_list + |> should.equal(map.from_list([tuple(1, 1)])) } pub fn has_key_test() { |