Add extra tests and warning about -PosIntNotFixnum.

original commit: 830db3c908f6b1b212036d1763a18ffeba884391
This commit is contained in:
Vincent St-Amour 2013-02-07 15:09:58 -05:00
parent a8a37a78eb
commit c436421efa
2 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,8 @@
(tc-e (- 1) -NegFixnum)
(tc-e (- 1073741823) -NegFixnum)
(tc-e (- -4) -PosFixnum)
(tc-e/t 1152921504606846975 -PosInt)
(tc-e/t -1152921504606846975 -NegInt)
(tc-e (- 3253463567262345623) -NegInt)
(tc-e (- -23524623547234734568) -PosInt)
(tc-e (- 241.3) -NegFlonum)

View File

@ -103,6 +103,9 @@
#'-NegFixnum))
(define -NonPosFixnum (*Un -NegFixnum -Zero))
(define -Fixnum (*Un -NegFixnum -Zero -PosFixnum))
;; This type, and others like it, should *not* be exported, or used for
;; anything but building unions. Especially, no literals should be given
;; these types.
(define -PosIntNotFixnum
(make-Base 'Positive-Integer-Not-Fixnum
#'(and/c exact-integer? positive? (not/c fixnum?))