X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcharacter.pure.lisp;h=742723456c5254e220ffc4871651edfcc22e4a7a;hb=cf49f2d086069a9c1b57f501df9a6a0bd3a34c3c;hp=95c583362053d863b5075c2cb3c8fb23c3cd9057;hpb=adc09c3bd72bf86b1435cc5569682af00f3db348;p=sbcl.git diff --git a/tests/character.pure.lisp b/tests/character.pure.lisp index 95c5833..7427234 100644 --- a/tests/character.pure.lisp +++ b/tests/character.pure.lisp @@ -126,3 +126,17 @@ ((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)) + (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))))))