aboutsummaryrefslogtreecommitdiff
path: root/test/map_dict_test.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'test/map_dict_test.gleam')
-rw-r--r--test/map_dict_test.gleam12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/map_dict_test.gleam b/test/map_dict_test.gleam
index 1ee489a..359df7c 100644
--- a/test/map_dict_test.gleam
+++ b/test/map_dict_test.gleam
@@ -162,3 +162,15 @@ pub fn merge_test() {
{"d", 3},
]))
}
+
+pub fn delete_test() {
+ [
+ {"a", 0},
+ {"b", 1},
+ {"c", 2},
+ ]
+ |> map_dict:from_list
+ |> map_dict:delete(_, "a")
+ |> map_dict:delete(_, "d")
+ |> expect:equal(_, map_dict:from_list([{"b", 1}, {"c", 2}]))
+}