X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcharacters.lisp;h=74679f6f00487f4595cb3330eaeb76a5de598b75;hb=3517907ed86d25003e1f8ae220ef354296d22416;hp=aa8388eebd7631a804f33415c8e7f311f8b050c2;hpb=858f7b088dcc3ba8c56927c8b201f704b3babf2c;p=jscl.git diff --git a/tests/characters.lisp b/tests/characters.lisp index aa8388e..74679f6 100644 --- a/tests/characters.lisp +++ b/tests/characters.lisp @@ -88,7 +88,10 @@ (test (null (digit-char-p #\a))) (test (= 10 (digit-char-p #\A 11))) (test (= 10 (digit-char-p #\a 11))) -;; TODO: does the mapcar/lambda thing work here? +;; (mapcar #'(lambda (radix) +;; (map 'list #'(lambda (x) (digit-char-p x radix)) +;; "059AaFGZ")) +;; '(2 8 10 16 36)) ;; GRAPHIC-CHAR-P (test (graphic-char-p #\G)) @@ -129,8 +132,7 @@ ;; CHAR-INT (test (= (char-int #\A) (char-int #\A))) ;; can be pretty much anything, as long as it's consistent -;; CHAR-TO-STRING (not actually part of the characters dictionary) -(test (= 1 (string-length (char-to-string (code-char 127744))))) +(test (= 1 (length (string (code-char 127744))))) ;; CHAR-CODE-LIMIT (test (< 95 char-code-limit 10000000))