Skip to content

Commit

Permalink
Avoid invalid interval designators in random integer types.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoheisig committed Jan 14, 2019
1 parent 4ec47f0 commit 395e45f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test-suite/random-types.lisp
Expand Up @@ -86,9 +86,11 @@
`(unsigned-byte ,(one-of (1+ (random 64)) '*))
`(signed-byte ,(one-of (1+ (random 64)) '*))
`(mod ,(1+ (random 4)))
`(integer ,(one-of lower-bound (list lower-bound) '*))
`(integer ,(one-of lower-bound (list lower-bound) '*)
,(one-of upper-bound (list upper-bound) '*))))))
`(integer ,(one-of lower-bound (list (1- lower-bound)) '*))
`(integer ,(one-of lower-bound (list (1- lower-bound)) '*) *)
`(integer * ,(one-of upper-bound (list (1+ upper-bound)) '*))
`(integer ,(one-of lower-bound (list (1- lower-bound)) '*)
,(one-of upper-bound (list (1+ upper-bound)) '*))))))

(defun random-real-type-specifier ()
(flet ((random-real-of-type (type)
Expand Down

0 comments on commit 395e45f

Please sign in to comment.