unicode.test 1.1 KB

1234567891011121314151617181920212223242526272829
  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. (define-module (test-suite test-unicode)
  20. #:use-module (test-suite lib)
  21. #:use-module (ice-9 unicode))
  22. (pass-if-equal "LATIN SMALL LETTER A" (char->formal-name #\a))
  23. (pass-if-equal #\a (formal-name->char "LATIN SMALL LETTER A"))
  24. (pass-if-equal #f (char->formal-name #\nul))
  25. (pass-if-equal #f (formal-name->char "not a known formal name"))