File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
test/expectations/clojure Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 44
55* 2.0.x in progress (alpha3?)
66 * Address #22 by adding ` clj-kondo.exports ` (this is just a first pass; the ` :lint-as ` mappings will probably be replaced by hooks in the future).
7+ * Fix #19 by supporting regex/patterns dynamically inside ` ?= ` (as well as the compile-time support already in ` expect ` ).
78 * Update ` build-clj ` to v0.5.0.
89 * Switch to ` build.clj ` /` tools.build ` for CI/deploy.
910
Original file line number Diff line number Diff line change 174174 (valid?# e# a#)
175175 (fn? e#)
176176 (e# a#)
177+ (isa? (type e#)
178+ #?(:clj java.util.regex.Pattern
179+ :cljs (type #"regex" )))
180+ (some? (re-find e# a#))
177181 :else
178182 (= e# a#))
179183 humane?# (and humane-test-output? (not (fn? e#)) (not ~conform?))]
Original file line number Diff line number Diff line change 194194 (is-not' (sut/expect " abcdef" (str " abc" " efg" ))
195195 [" abcefg" ]
196196 #"(?is)(str \" abc\" \" efg\" ).*matches: \" abc\" " )))
197+
198+ (deftest issue-19-regex-test
199+ (is (sut/expect (re-pattern " \\ d+" ) " 1000" )))
You can’t perform that action at this time.
0 commit comments