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 11
11
char double int keyword symbol string uuid delay])
12
12
(:require-macros [cljs.core :as c]
13
13
[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)))
15
16
16
17
(deftype LazyVar [f ^:mutable cached]
17
18
IDeref
@@ -107,6 +108,7 @@ gen-builtins
107
108
simple-symbol? (symbol )
108
109
qualified-symbol? (such-that qualified? (symbol-ns ))
109
110
uuid? (uuid )
111
+ uri? (fmap #(Uri. (str " http://" % " .com" )) (uuid ))
110
112
inst? (fmap #(js/Date. %)
111
113
(large-integer ))
112
114
seqable? (one-of [(return nil )
Original file line number Diff line number Diff line change 6
6
7
7
(s/fdef clojure.core/symbol
8
8
:args (s/alt :separate (s/cat :ns string? :n string?)
9
- :str string?
10
- :sym symbol?)
9
+ :str string?
10
+ :sym symbol?)
11
11
:ret symbol?)
12
12
13
13
(defn h-cljs-1812 [x] true )
82
82
(is (= [1 2 3 ] (foo 1 2 3 )))
83
83
(is (thrown? js/Error (foo 1 :hello )))
84
84
(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