diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-14 23:47:43 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-14 23:47:43 +0000 |
commit | 301a3cda5671e7e40a7f72349d8e1b22ffbeacfa (patch) | |
tree | bf86137233ccdbbb07b70202a44e48edace843fd /lib/charnames.t | |
parent | ba8639421c86ec71757a56d2fabcbfe5474d875d (diff) | |
download | perl-301a3cda5671e7e40a7f72349d8e1b22ffbeacfa.tar.gz |
Document and test the C0 and C1.
p4raw-id: //depot/perl@14699
Diffstat (limited to 'lib/charnames.t')
-rw-r--r-- | lib/charnames.t | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/charnames.t b/lib/charnames.t index e12b920f31..607f4f3790 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -8,7 +8,7 @@ BEGIN { } $| = 1; -print "1..22\n"; +print "1..25\n"; use charnames ':full'; @@ -158,3 +158,18 @@ sub to_bytes { print "ok 22\n"; } + +print "not " unless "\N{HORIZONTAL TABULATION}" eq "\t"; +print "ok 23\n"; + +print "not " unless "\N{ESCAPE}" eq "\e"; +print "ok 24\n"; + +print "not " unless "\N{NULL}" eq "\c@"; +print "ok 25\n"; + +# TODO: when Unicode 3.2 comes along some names will change +# HORIZONTAL TABULATION -> CHARACTER TABULATION (since ISO 6429 +# has been updated), and some names will have shorter aliases +# LINEFEED (LF). Update the tests, and also update the charnames +# pragma to support the 3.1 names, and the shorter aliases. |