X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Funicode-normalization.impure.lisp;h=49aa69a49173ac75c6a8fdf23220fa89bc05d8f9;hb=9b79c4c51954ffc46c631e56547ac865860e8855;hp=7cd0fdda7bfc70f1c5cb120ac7d8adf904cde1e3;hpb=db0110475c0db5dc3cb1bb12de0b0c475880899e;p=sbcl.git diff --git a/tests/unicode-normalization.impure.lisp b/tests/unicode-normalization.impure.lisp index 7cd0fdd..49aa69a 100644 --- a/tests/unicode-normalization.impure.lisp +++ b/tests/unicode-normalization.impure.lisp @@ -1,3 +1,17 @@ +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; While most of SBCL is derived from the CMU CL system, the test +;;;; files (like this one) were written from scratch after the fork +;;;; from CMU CL. +;;;; +;;;; This software is in the public domain and is provided with +;;;; absolutely no warranty. See the COPYING and CREDITS files for +;;;; more information. + +;;; KLUDGE: eventually we will export NORMALIZE-STRING from somewhere. +;;; Until we do, import it here so we can test it without putting :: +;;; everywhere. (import 'sb-impl::normalize-string) (defun parse-one-line (line) @@ -65,7 +79,8 @@ (assert (string= "@Part0" line :end2 6)) (assert (char= #\# (char (read-line s) 0))))) ;; Part0: specific cases - (with-test (:name (:unicode-normalization :part0)) + (with-test (:name (:unicode-normalization :part0) + :skipped-on '(not :sb-unicode)) (do ((line (read-line s) (read-line s))) ((char= #\# (char line 0)) (assert (string= "@Part1" (read-line s) :end2 6)) @@ -76,7 +91,8 @@ (test-line c1 c2 c3 c4 c5)))) ;; Part1: single characters. (Extra work to check for conformance ;; on unlisted entries) - (with-test (:name (:unicode-normalization :part1)) + (with-test (:name (:unicode-normalization :part1) + :skipped-on '(not :sb-unicode)) (do ((line (read-line s) (read-line s)) (code 0)) ((char= #\# (char line 0)) @@ -93,7 +109,8 @@ (setf code (1+ c))) (test-no-normalization (string (code-char code))))))) ;; Part2: Canonical Order Test - (with-test (:name (:unicode-normalization :part2)) + (with-test (:name (:unicode-normalization :part2) + :skipped-on '(not :sb-unicode)) (do ((line (read-line s) (read-line s))) ((char= #\# (char line 0)) (assert (string= "@Part3" (read-line s) :end2 6)) @@ -102,7 +119,8 @@ (parse-one-line line) (test-line c1 c2 c3 c4 c5)))) ;; Part3: PRI #29 Test - (with-test (:name (:unicode-normalization :part3)) + (with-test (:name (:unicode-normalization :part3) + :skipped-on '(not :sb-unicode)) (do ((line (read-line s) (read-line s))) ((char= #\# (char line 0)) (assert (char= #\# (char (read-line s) 0)))