Moved tests for equality to unit tests
original commit: 0671945a8d39c87dfe3536291a06bf2dc00f241d
This commit is contained in:
parent
cfbdcf9cdb
commit
ee96de4dce
|
@ -959,8 +959,25 @@
|
|||
(tc-e (symbol->string 'foo) -String)
|
||||
(tc-e (string->symbol (symbol->string 'foo)) -Symbol)
|
||||
|
||||
;Booleans
|
||||
(tc-e (not #f) #:ret (ret B (-FS -top -bot)))
|
||||
(tc-e (false? #f) #:ret (ret B (-FS -top -bot)))
|
||||
(tc-e (not #t) #:ret (ret B (-FS -bot -top)))
|
||||
(tc-e (false? #t) #:ret (ret B (-FS -bot -top)))
|
||||
|
||||
|
||||
(tc-e (boolean? true) #:ret (ret B (-FS -top -bot)))
|
||||
(tc-e (boolean? 6) #:ret (ret B (-FS -bot -top)))
|
||||
(tc-e (immutable? (cons 3 4)) B)
|
||||
|
||||
(tc-e (boolean=? #t false) B)
|
||||
(tc-e (symbol=? 'foo 'foo) B)
|
||||
|
||||
(tc-e (equal? 1 2) B)
|
||||
(tc-e (eqv? 1 2) B)
|
||||
(tc-e (eq? 1 2) B)
|
||||
(tc-e (equal?/recur 'foo 'bar eq?) B)
|
||||
|
||||
)
|
||||
(test-suite
|
||||
"check-type tests"
|
||||
|
|
|
@ -208,7 +208,7 @@
|
|||
;Section 3.1
|
||||
|
||||
[boolean? (make-pred-ty B)]
|
||||
[not (-> Univ B)]
|
||||
[not (make-pred-ty (-val #f))]
|
||||
[equal? (-> Univ Univ B)]
|
||||
[eqv? (-> Univ Univ B)]
|
||||
[eq? (-> Univ Univ B)]
|
||||
|
|
|
@ -513,7 +513,7 @@
|
|||
[((tc-result1: t) (tc-result1: t* f o))
|
||||
(ret t f o)])]
|
||||
;; special-case for not - flip the filters
|
||||
[(#%plain-app (~or not false?) arg)
|
||||
[(#%plain-app (~or false? not) arg)
|
||||
(match (single-value #'arg)
|
||||
[(tc-result1: t (FilterSet: f+ f-) _)
|
||||
(ret -Boolean (make-FilterSet f- f+))])]
|
||||
|
|
Loading…
Reference in New Issue
Block a user