Commit | Line | Data |
---|---|---|
c5ea7553 AW |
1 | ;;;; unicode.test -*- scheme -*- |
2 | ;;;; | |
3 | ;;;; Copyright (C) 2014 Free Software Foundation, Inc. | |
4 | ;;;; | |
5 | ;;;; This library is free software: you can redistribute it and/or modify | |
6 | ;;;; it under the terms of the GNU Lesser General Public License as | |
7 | ;;;; published by the Free Software Foundation, either version 3 of the | |
8 | ;;;; License, or (at your option) any later version. | |
9 | ;;;; | |
10 | ;;;; This library is distributed in the hope that it will be useful, | |
11 | ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | ;;;; GNU Lesser General Public License for more details. | |
14 | ;;;; | |
15 | ;;;; You should have received a copy of the GNU Lesser General Public | |
16 | ;;;; License along with this library. If not, see | |
17 | ;;;; <http://www.gnu.org/licenses/>. | |
18 | ;;;; | |
19 | ||
20 | (define-module (test-suite test-unicode) | |
21 | #:use-module (test-suite lib) | |
22 | #:use-module (ice-9 unicode)) | |
23 | ||
24 | (pass-if-equal "LATIN SMALL LETTER A" (char->formal-name #\a)) | |
25 | (pass-if-equal #\a (formal-name->char "LATIN SMALL LETTER A")) | |
26 | ||
27 | (pass-if-equal #f (char->formal-name #\nul)) | |
28 | (pass-if-equal #f (formal-name->char "not a known formal name")) |