Add extra tests and warning about -PosIntNotFixnum.
original commit: 830db3c908f6b1b212036d1763a18ffeba884391
This commit is contained in:
parent
a8a37a78eb
commit
c436421efa
|
@ -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)
|
||||
|
|
|
@ -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?))
|
||||
|
|
Loading…
Reference in New Issue
Block a user