File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -9102,8 +9102,8 @@ reduces them without incurring seq initialization"
9102
9102
(-lookup [coll v]
9103
9103
(-lookup coll v nil ))
9104
9104
(-lookup [coll v not-found]
9105
- (if ( -contains-key? hash-map v)
9106
- v
9105
+ (if-let [entry ( -find hash-map v)]
9106
+ ( key entry)
9107
9107
not-found))
9108
9108
9109
9109
ISet
Original file line number Diff line number Diff line change 8
8
9
9
(ns cljs.collections-test
10
10
(:refer-clojure :exclude [iter])
11
- (:require [cljs.test :refer-macros [deftest testing is are]]
11
+ (:require [cljs.test :refer-macros [deftest testing is are run-tests ]]
12
12
[clojure.string :as s]
13
13
[clojure.set :as set]))
14
14
998
998
(is (not (realized? xs)))
999
999
(is (not (realized? ys)))
1000
1000
(is (= () xs ys))))
1001
+
1002
+ (deftest test-cljs-2736
1003
+ (let [s #{(with-meta [:a ] {:n 42 })}]
1004
+ (is (= {:n 42 } (meta (s [:a ]))))))
1005
+
1006
+ (comment
1007
+
1008
+ (run-tests )
1009
+
1010
+ )
You can’t perform that action at this time.
0 commit comments