DalekBaldwin / check-it

Randomized specification-based testing for Common Lisp. Available through Quicklisp.
51 stars 10 forks source link

Error: Argument is neither a positive integer nor a positive float: 0 #23

Open maruks opened 5 years ago

maruks commented 5 years ago

This generator doesn't work:

(generator (chain ((n (integer 3 18))) (generator (tuple (list (integer 1 75) :length n) (list (integer 0 (1- n)) :length (* 2 n))))))

generators.lisp calls random with 0 argument 211: (random (- (min (1+ max-length) list-size) min-length)))))

Argument is neither a positive integer nor a positive float: 0 [Condition of type SIMPLE-TYPE-ERROR]

maruks commented 5 years ago

it works only if I do (let ((list-size 60)