We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0dedcb commit f21ad27Copy full SHA for f21ad27
test/cljs/cljs/pprint_test.clj
@@ -5,8 +5,8 @@
5
`(deftest ~name
6
~@(for [[x y] (partition 2 test-pairs)]
7
`(cond
8
- (= js/RegExp (type ~y)) (is (.exec ~y ~x))
9
- (= js/String (type ~y)) (is (= ~x ~y))
+ (cljs.core/regexp? ~y) (is (.exec ~y ~x))
+ (cljs.core/string? ~y) (is (= ~x ~y))
10
:else (is (= ~x ~y))))))
11
12
(defmacro code-block
0 commit comments