%PDF- %PDF-
| Direktori : /home/opti/optisoftcom/.cpanm/work/1544535425.21555/Unicode-Stringprep-1.105/t/ |
| Current File : /home/opti/optisoftcom/.cpanm/work/1544535425.21555/Unicode-Stringprep-1.105/t/30_mappings.t |
use strict;
use utf8;
no warnings 'utf8';
use Test::More;
use Test::NoWarnings;
use Unicode::Stringprep;
our @data = (
[ 0x0000 => '^@' ],
[ 0x0001 => '^A' ],
[ 0x0041 => 'a' ],
[ 0x00DF => 'ss' ],
[ 0x123 => "รค" ],
[ 0x20AC => 'EUR' ],
[ 0x10FFFF => '#' ],
);
plan tests => ($#data+1) + 1;
my $prep = Unicode::Stringprep->new( 3.2, [ @data ], '', [ ], 0 );
foreach(@data)
{
my ($in,$out) = @{$_};
is($prep->(chr($in)), $out, sprintf 'U+%04X', $in);
}