aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/map_dict_test.gleam11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/map_dict_test.gleam b/test/map_dict_test.gleam
index 02b7072..f72e23a 100644
--- a/test/map_dict_test.gleam
+++ b/test/map_dict_test.gleam
@@ -111,3 +111,14 @@ pub fn values_test() {
|> map_dict:values
|> expect:equal(_, [0, 1, 2])
}
+
+pub fn take_test() {
+ [
+ {"a", 0},
+ {"b", 1},
+ {"c", 2},
+ ]
+ |> map_dict:from_list
+ |> map_dict:take(_, ["a", "b", "d"])
+ |> expect:equal(_, map_dict:from_list([{"a", 0}, {"b", 1}]))
+}