summaryrefslogtreecommitdiff
path: root/t/pragma
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-02 10:32:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-02 10:32:01 +0000
commit0f4b663008b5032408c35f3557d9d5c2790d3fcb (patch)
tree60ab7022a0c6f1632b74bf965475fcce8e70fe6b /t/pragma
parentf0d0442576ea74c58911be43ef48f5977fe2e1fa (diff)
downloadperl-0f4b663008b5032408c35f3557d9d5c2790d3fcb.tar.gz
More 64-bit fixing. One known bug of that kind
remains, 32-bit platforms using long long in the test t/pragma/utf8 subtests 1-3 fail. (Update: change #3884 fixed that one.) p4raw-link: @3884 (not found) p4raw-id: //depot/cfgperl@3880
Diffstat (limited to 't/pragma')
-rwxr-xr-xt/pragma/utf8.t16
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++;
+}