1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00
guile/test-suite/tests/unicode.test
Andy Wingo 3157d45503 Add (ice-9 unicode) module
* libguile/unicode.c:
* libguile/unicode.h:
* test-suite/tests/unicode.test:
* module/ice-9/unicode.scm: New files.

* module/Makefile.am:
* libguile/Makefile.am:
* test-suite/Makefile.am:
* libguile/init.c: Wire new files into the build.

* doc/ref/api-data.texi: Add docs.
2014-09-29 21:54:14 -04:00

28 lines
1.1 KiB
Scheme

;;;; unicode.test -*- scheme -*-
;;;;
;;;; Copyright (C) 2014 Free Software Foundation, Inc.
;;;;
;;;; This library is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as
;;;; published by the Free Software Foundation, either version 3 of the
;;;; License, or (at your option) any later version.
;;;;
;;;; This library is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;;; GNU Lesser General Public License for more details.
;;;;
;;;; You should have received a copy of the GNU Lesser General Public
;;;; License along with this library. If not, see
;;;; <http://www.gnu.org/licenses/>.
;;;;
(define-module (test-suite test-unicode)
#:use-module (test-suite lib)
#:use-module (ice-9 unicode))
(pass-if-equal "LATIN SMALL LETTER A" (char->formal-name #\a))
(pass-if-equal #\a (formal-name->char "LATIN SMALL LETTER A"))
(pass-if-equal #f (char->formal-name #\nul))
(pass-if-equal #f (formal-name->char "not a known formal name"))