allow empty strings for text

svn: r9989
This commit is contained in:
Matthias Felleisen 2008-05-27 22:17:54 +00:00
parent cb365eeb94
commit 890ff70938

View File

@ -389,7 +389,7 @@ plt/collects/tests/mzscheme/image-test.ss
y2))))))
(define (text str size color-in)
(check 'text (lambda (x) (and (string? x) (not (equal? "" x)))) str "non-empty string" "first")
(check 'text (lambda (x) (and (string? x) #;(not (equal? "" x)))) str "non-empty string" "first")
(check 'text (lambda (x) (and (integer? x) (<= 1 x 255))) size "integer between 1 and 255" "second")
(check-image-color 'text color-in "third")
(let ([color (make-color% color-in)])