diff options
Diffstat (limited to 't/pragma/utf8.t')
-rwxr-xr-x | t/pragma/utf8.t | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/t/pragma/utf8.t b/t/pragma/utf8.t index 5e467ae053..01b0f0529c 100755 --- a/t/pragma/utf8.t +++ b/t/pragma/utf8.t @@ -6,7 +6,7 @@ BEGIN { $ENV{PERL5LIB} = '../lib'; } -print "1..9\n"; +print "1..12\n"; my $test = 1; @@ -65,6 +65,18 @@ sub ok { ok $1, 'NUMERIC'; $test++; -} + $_ = "alpha123numeric456"; + m/([\p{IsDigit}]+)/; + ok $1, '123'; + $test++; + $_ = "alpha123numeric456"; + m/([^\p{IsDigit}]+)/; + ok $1, 'alpha'; + $test++; + $_ = ",123alpha,456numeric"; + m/([\p{IsAlnum}]+)/; + ok $1, '123alpha'; + $test++; +} |