svn: r11567
This commit is contained in:
Robby Findler 2008-09-07 12:46:17 +00:00
parent a0b85a2210
commit 2ece9d9e95
2 changed files with 4 additions and 0 deletions

View File

@ -1277,6 +1277,7 @@ improve method arity mismatch contract violation error messages?
(null? x)
(number? x)
(regexp? x)
(prefab-struct-key x) ;; this cannot be last, since it doesn't return just #t
(and (pair? x)
(printable? (car x))
(printable? (cdr x)))

View File

@ -4524,6 +4524,9 @@ so that propagation occurs.
(test-flat-contract 'false/c #f #t)
(test/spec-passed 'any/c '(contract any/c 1 'pos 'neg))
(test-flat-contract 'printable/c (vector (cons 1 (box #f))) (lambda (x) x))
(let ()
(define-struct s (a b) #:prefab)
(test-flat-contract 'printable/c (make-s 1 2) (λ (x) x)))
(test-flat-contract '(symbols 'a 'b 'c) 'a 'd)
(test-flat-contract '(one-of/c (expt 2 65)) (expt 2 65) 12)
(test-flat-contract '(one-of/c '#:x '#:z) '#:x '#:y)