X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcharacter.pure.lisp;h=c84b46302d652c68bc0ff84b4e422df72d42bc59;hb=88429c4045707ceaf99a10801d5c5efdca765afa;hp=95c583362053d863b5075c2cb3c8fb23c3cd9057;hpb=adc09c3bd72bf86b1435cc5569682af00f3db348;p=sbcl.git diff --git a/tests/character.pure.lisp b/tests/character.pure.lisp index 95c5833..c84b463 100644 --- a/tests/character.pure.lisp +++ b/tests/character.pure.lisp @@ -126,3 +126,18 @@ ((1 . ,(1- char-code-limit)))) &optional)) (sb-impl::%fun-type f))))) + +(with-test (:name (:case-insensitive-char-comparisons :eacute)) + (assert (char-equal (code-char 201) (code-char 233)))) + +(with-test (:name (:case-insensitive-char-comparisons :exhaustive) + :fails-on '(and)) + (dotimes (i char-code-limit) + (let* ((char (code-char i)) + (down (char-downcase char)) + (up (char-upcase char))) + (assert (char-equal char char)) + (when (char/= char down) + (assert (char-equal char down))) + (when (char/= char up) + (assert (char-equal char up))))))