X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcharacter.pure.lisp;h=97a2590e7a0cab918e1b3954567c3e6b93e12d3c;hb=d76c81b0ca4dcfc99f0cd805f5c20493fa80b2b6;hp=f9b08df37ced6bd7c10c8335fcce42faafb1d2f4;hpb=34dd23563d2f5cf05c72b971da0d0b065a09bf2a;p=sbcl.git diff --git a/tests/character.pure.lisp b/tests/character.pure.lisp index f9b08df..97a2590 100644 --- a/tests/character.pure.lisp +++ b/tests/character.pure.lisp @@ -35,3 +35,22 @@ (assert (characterp named-char)) (let ((coded-char-name (char-name coded-char))) (assert (string= name coded-char-name)))))) + +;;; bug 230: CHAR= didn't check types of &REST arguments +(dolist (form '((code-char char-code-limit) + (standard-char-p "a") + (graphic-char-p "a") + (alpha-char-p "a") + (upper-case-p "a") + (lower-case-p "a") + (both-case-p "a") + (digit-char-p "a") + (alphanumericp "a") + (char= #\a "a") + (char/= #\a "a") + (char< #\a #\b "c") + (char-equal #\a #\a "b") + (digit-char -1) + (digit-char 4 1) + (digit-char 4 37))) + (assert (raises-error? (apply (car form) (mapcar 'eval (cdr form))) type-error)))