reiddraper / simple-check

QuickCheck for Clojure
http://reiddraper.github.io/simple-check/
286 stars 18 forks source link

Shrink doesn't work with empty list. #21

Closed sonntag closed 11 years ago

sonntag commented 11 years ago

Tried the following code sample:

(sc/quick-check 100
  (prop/for-all [xs (gen/list gen/int)]
    (not (empty? xs))))

And got the following exception:

java.lang.IllegalArgumentException: No implementation of method: :shrink of protocol: #'simple-check.generators/Shrink found for class: clojure.lang.PersistentList$EmptyList
reiddraper commented 11 years ago

Thanks for reporting, fixed.