Skip to content

Commit 4c8aeaa

Browse files
committed
Slightly extend a test of keywords
1 parent 54bf5d0 commit 4c8aeaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/native_tests/keywords.hy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
(defn test-keyword []
88
(assert (= :foo :foo))
9+
(assert (not (!= :foo :foo)))
10+
(assert (!= :foo :bar))
911
(assert (= :foo ':foo))
1012
(setv x :foo)
11-
(assert (is (type x) (type ':foo)))
13+
(assert (is (type x) (type ':foo) hy.models.Keyword))
1214
(assert (= (get {:foo "bar"} :foo) "bar"))
1315
(assert (= (get {:bar "quux"} (get {:foo :bar} :foo)) "quux")))
1416

0 commit comments

Comments
 (0)