syndicate-2017/racket/typed/tests/primitives.rkt

28 lines
445 B
Racket
Raw Normal View History

#lang typed/syndicate
2020-02-24 20:10:52 +00:00
(require rackunit/turnstile)
(check-type (or #f #t)
: Bool
#t)
(check-type (and #t #f)
: Bool
#f)
(check-type (or)
: Bool
#f)
(check-type (and)
: Bool
#t)
(check-type (or #f #f #f #f #f #t)
: Bool
#t)
(check-type (and #t #t #t #t #t #f)
: Bool
#f)