Fix small bugs
This commit is contained in:
parent
6af03289e5
commit
da45c7049c
|
@ -12,7 +12,7 @@
|
||||||
(vector? arg)
|
(vector? arg)
|
||||||
(map? arg))))
|
(map? arg))))
|
||||||
|
|
||||||
(def generic-args nil () true "test" :test 0 Integer/MAX_VALUE 0.0001 -0.0001)
|
(def generic-args '(nil () true "test" :test 0 Integer/MAX_VALUE 0.0001 -0.0001))
|
||||||
|
|
||||||
(defn find-interesting-args [sexpr]
|
(defn find-interesting-args [sexpr]
|
||||||
"Find things in sexpr which would be interesting if passed as arguments to it"
|
"Find things in sexpr which would be interesting if passed as arguments to it"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
#(cond
|
#(cond
|
||||||
(number? %) (list % (inc %) (dec %))
|
(number? %) (list % (inc %) (dec %))
|
||||||
true %)
|
true %)
|
||||||
(find-interesting-args sexpr))))
|
(find-interesting-args sexpr)))))
|
||||||
|
|
||||||
(defn testgen [fndef]
|
(defn testgen [fndef]
|
||||||
(cond (= (first fndef) 'defn)
|
(cond (= (first fndef) 'defn)
|
||||||
|
|
Loading…
Reference in a new issue