Skip to content

Commit f21ad27

Browse files
author
dnolen
committed
fix RegExp Closure errors
1 parent d0dedcb commit f21ad27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cljs/cljs/pprint_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
`(deftest ~name
66
~@(for [[x y] (partition 2 test-pairs)]
77
`(cond
8-
(= js/RegExp (type ~y)) (is (.exec ~y ~x))
9-
(= js/String (type ~y)) (is (= ~x ~y))
8+
(cljs.core/regexp? ~y) (is (.exec ~y ~x))
9+
(cljs.core/string? ~y) (is (= ~x ~y))
1010
:else (is (= ~x ~y))))))
1111

1212
(defmacro code-block

0 commit comments

Comments
 (0)