Skip to content

Commit 29d8856

Browse files
committed
feat(dict): adding list as key test in dict-tests
1 parent 6a6b4cb commit 29d8856

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/dict-tests.ark

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@
1616
"a" 1
1717
"b" 2
1818
"c" 3))
19+
(let d3 (dict [1] 2))
1920
(let empty (dict))
2021
(let map_to_num (fun (k v) (toNumber v)))
2122
(let map_to_str (fun (k v) (toString v)))
2223
(let filter_str_keys (fun (k v) (= "String" (type k))))
2324
(let filter_odd (fun (k v) (= 1 (mod v 2))))
2425

26+
2527
(test:case "comparison" {
2628
(test:eq empty (dict))
2729
(test:eq (dict) (dict))
2830
(test:neq empty d)
2931
(test:neq d d2)
3032
(test:eq d2 (dict "c" 3 "a" 1 "b" 2))
31-
(test:neq d2 (dict "c" 4 "a" 1 "b" 2)) })
33+
(test:neq d2 (dict "c" 4 "a" 1 "b" 2))
34+
(test:neq d d3)
35+
(test:neq d3 d2) })
3236

3337
(test:case "get" {
3438
(test:eq (dict:get d "key") "value")

0 commit comments

Comments
 (0)