Read complex numbers where both parts are inexact decimals
[bpt/guile.git] / test-suite / tests / chars.test
CommitLineData
55b44a9e
GB
1;;;; chars.test --- test suite for Guile's char functions -*- scheme -*-
2;;;; Greg J. Badros <gjb@cs.washington.edu>
3;;;;
6e7d5622 4;;;; Copyright (C) 2000, 2006 Free Software Foundation, Inc.
55b44a9e 5;;;;
53befeb7
NJ
6;;;; This library is free software; you can redistribute it and/or
7;;;; modify it under the terms of the GNU Lesser General Public
8;;;; License as published by the Free Software Foundation; either
9;;;; version 3 of the License, or (at your option) any later version.
55b44a9e 10;;;;
53befeb7 11;;;; This library is distributed in the hope that it will be useful,
55b44a9e 12;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
53befeb7
NJ
13;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14;;;; Lesser General Public License for more details.
55b44a9e 15;;;;
53befeb7
NJ
16;;;; You should have received a copy of the GNU Lesser General Public
17;;;; License along with this library; if not, write to the Free Software
18;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
47dbd81e 19
1b34e26a
NJ
20(use-modules (test-suite lib))
21
22(define exception:wrong-type-to-apply
23 (cons 'misc-error "^Wrong type to apply:"))
24
25
47dbd81e
DH
26(with-test-prefix "basic char handling"
27
28 (with-test-prefix "evaluator"
29
f5c6ec2f 30 ;; The following test makes sure that the evaluator distinguishes between
47dbd81e
DH
31 ;; evaluator-internal instruction codes and characters.
32 (pass-if-exception "evaluating chars"
33 exception:wrong-type-to-apply
34 (eval '(#\0) (interaction-environment)))))
35
55b44a9e
GB
36(pass-if "char-is-both? works"
37 (and
38 (not (char-is-both? #\?))
39 (not (char-is-both? #\newline))
40 (char-is-both? #\a)
41 (char-is-both? #\Z)
42 (not (char-is-both? #\1))))
43