File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1111 char double int keyword symbol string uuid delay])
1212 (:require-macros [cljs.core :as c]
1313 [cljs.spec.gen.alpha :as gen :refer [dynaload lazy-combinators lazy-prims]])
14- (:require [cljs.core :as c]))
14+ (:require [cljs.core :as c])
15+ (:import (goog Uri)))
1516
1617(deftype LazyVar [f ^:mutable cached]
1718 IDeref
@@ -107,6 +108,7 @@ gen-builtins
107108 simple-symbol? (symbol )
108109 qualified-symbol? (such-that qualified? (symbol-ns ))
109110 uuid? (uuid )
111+ uri? (fmap #(Uri. (str " http://" % " .com" )) (uuid ))
110112 inst? (fmap #(js/Date. %)
111113 (large-integer ))
112114 seqable? (one-of [(return nil )
Original file line number Diff line number Diff line change 66
77(s/fdef clojure.core/symbol
88 :args (s/alt :separate (s/cat :ns string? :n string?)
9- :str string?
10- :sym symbol?)
9+ :str string?
10+ :sym symbol?)
1111 :ret symbol?)
1212
1313(defn h-cljs-1812 [x] true )
8282 (is (= [1 2 3 ] (foo 1 2 3 )))
8383 (is (thrown? js/Error (foo 1 :hello )))
8484 (stest/unstrument `foo))
85+
86+ (deftest test-2755
87+ (is (uri? (ffirst (s/exercise uri? 1 )))))
You can’t perform that action at this time.
0 commit comments