From aa266525dc6df8ce2c779f401a1ac7535f422033 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Sun, 25 Nov 2007 14:42:04 +0000 Subject: [PATCH] added error check to string svn: r7830 --- collects/htdp/image.ss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/htdp/image.ss b/collects/htdp/image.ss index 73a8133c86..e359524035 100644 --- a/collects/htdp/image.ss +++ b/collects/htdp/image.ss @@ -388,7 +388,7 @@ plt/collects/tests/mzscheme/image-test.ss y2)))))) (define (text str size color-in) - (check 'text string? str "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)])