Skip to content

Commit ba118da

Browse files
committed
one more failing cljs.core-test around map entries
- sanity check eq / hash between simple-map-entry and MapEntry - go ahead and update cljs/lite-test-runner to run cljs.core-test
1 parent db9b5a4 commit ba118da

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/test/cljs/cljs/lite_collections_test.cljs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,17 @@
1616
b {}]
1717
(is (identical? a b)))
1818
(let [a {:foo 1}]
19-
(is (== 1 (:foo a)))))
19+
(is (== 1 (:foo a)))))
20+
21+
(deftest test-simple-map-entry-eq-hash
22+
(is (= (simple-map-entry 1 2)
23+
(MapEntry. 1 2 nil)))
24+
(is (== (hash (simple-map-entry 1 2))
25+
(hash (MapEntry. 1 2 nil)))))
26+
27+
(comment
28+
29+
(require '[cljs.lite-collections-test] :reload)
30+
(cljs.test/run-tests)
31+
32+
)

src/test/cljs/lite_test_runner.cljs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
(ns lite-test-runner
1010
(:require [cljs.test :refer-macros [run-tests]]
11+
[cljs.core-test]
1112
[cljs.lite-collections-test]))
1213

1314
(set! *print-newline* false)
@@ -19,4 +20,5 @@
1920

2021
(run-tests
2122
'cljs.lite-collections-test
23+
'cljs.core-test
2224
)

0 commit comments

Comments
 (0)