-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexample.txt
72 lines (49 loc) · 2.12 KB
/
example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
value of *e, spit
clojure.lang.ExceptionInfo: Call to #'user/blipper did not conform to spec:
val: (true) fails at: [:args] predicate: int?
the preceding stuff
user=> (defn blipper [ x ] ( + 8 5 x))
#'user/blipper
user=> (require '[clojure.spec.alpha] :as s)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: s in this context, compiling:(/tmp/form-init5791188113705125000.clj:1:1)
user=> (require '[clojure.spec.alpha :as s])
nil
user=> (s/fdef :args int?)
CompilerException java.lang.IllegalArgumentException: No value supplied for key: int?, compiling:(/tmp/form-init5791188113705125000.clj:1:1)
user=> (s/fdef blipper :args int?)
user/blipper
user=> (s/instrument)
CompilerException java.lang.RuntimeException: No such var: s/instrument, compiling:(/tmp/form-init5791188113705125000.clj:1:1)
user=> (require '[clojure.spec.test.alpha :as stest])
nil
user=> (stest/instrument)
[user/blipper]
user=> (blipper true)
ExceptionInfo Call to #'user/blipper did not conform to spec:
val: (true) fails at: [:args] predicate: int?
clojure.core/ex-info (core.clj:4739)
user=> *e
(require '[clojure.spec.alpha :as s])
(require '[clojure.spec.test.alpha :as stest])
(defn blipper
[inp]
"blip")
(s/fdef blipper
:args (s/cat :name string?))
(stest/instrument)
(def ex-m "ExceptionInfo Call to #'user/blipper did not conform to spec:
val: (true) fails at: [:args] predicate: int?
clojure.core/ex-info (core.clj:4739)")
(def ex-m "Call to #'user/blipper did not conform to spec:
val: (true) fails at: [:args] predicate: int?
clojure.core/ex-info (core.clj:4739)")
["ExceptionInfo Call to #'user/blipper did not conform to spec:\nval: (true) fails at: [:args] predicate: int?\n clojure.core/ex-info (core.clj:4739)"
"ExceptionInfo"
"user"
"blipper"
""
"\n clojure.core/ex-info (core.clj:4739)"
" clojure.core/ex-info (core.clj:4739)"
nil]
"ClassCastException Cannot cast java.lang.Boolean to java.lang.Number java.lang.Class.cast (Class.java:3369)"
CompilerException java.lang.RuntimeException: Unable to resolve symbol: bana in this context, compiling:(/tmp/form-init4725170790302613533.clj:1:1)