Skip to content

Commit

Permalink
Adding test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Jan 9, 2020
1 parent 539dc4c commit 43d3041
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/Tools_Text.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Test::More;

use Sympa::Tools::Text;

plan tests => 12;
plan tests => 13;

my $email = q{&'+-./09=_A@Z.a-z};
my $unicode_email =
Expand Down Expand Up @@ -47,3 +47,7 @@ is $dec, $unicode_email, 'decode_filesystem_safe, Unicode';

# ToDo: foldcase()
# ToDo: wrap_text()

# Noncharacters: U+d800, U+10FFE, U+110000, U+200000
is Sympa::Tools::Text::canonic_text("\xED\xA0\x80\n\xF4\x8F\xBF\xBE\n\xF4\x90\x80\x80\n\xF8\x88\x80\x80\x80\n"), Encode::encode_utf8("\x{FFFD}\x{FFFD}\x{FFFD}\n\x{FFFD}\n\x{FFFD}\x{FFFD}\x{FFFD}\x{FFFD}\n\x{FFFD}\x{FFFD}\x{FFFD}\x{FFFD}\x{FFFD}\n");

0 comments on commit 43d3041

Please sign in to comment.