diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-02 15:12:57 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-02 15:12:57 +0000 |
commit | d07ddd77a31b1e57c2f358652e4f3f85d2e29ad4 (patch) | |
tree | 7013c4763e4deccb95dbf68591f81dcc612507cc /t/op/pat.t | |
parent | 2da3dd1220db0c8e18e8bcc1b6c47f5f168dc6fc (diff) | |
download | perl-d07ddd77a31b1e57c2f358652e4f3f85d2e29ad4.tar.gz |
One more iteration of the ibcmp_utf8() interface,
hopefully this is a convergent iteration...
p4raw-id: //depot/perl@14014
Diffstat (limited to 't/op/pat.t')
-rwxr-xr-x | t/op/pat.t | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index b797bdffbb..5cdb2e5ad2 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ $| = 1; -print "1..828\n"; +print "1..834\n"; BEGIN { chdir 't' if -d 't'; @@ -2380,11 +2380,7 @@ print "# some Unicode properties\n"; print "# GREEK CAPITAL LETTER SIGMA vs COMBINING GREEK PERISPOMENI\n"; my $SIGMA = "\N{GREEK CAPITAL LETTER SIGMA}"; - - my $hSIGMA = sprintf "%04x", ord $SIGMA; - - my $char = "\N{COMBINING GREEK PERISPOMENI}"; - my $code = sprintf "%04x", ord($char); + my $char = "\N{COMBINING GREEK PERISPOMENI}"; # Before #13843 this was failing by matching falsely. print "_:$char:_" =~ m/_:$SIGMA:_/i ? "not ok 786\n" : "ok 786\n"; @@ -2558,3 +2554,27 @@ print "# some Unicode properties\n"; } } } + +{ + print "# more SIGMAs\n"; + + my $SIGMA = "\x{03A3}"; # CAPITAL + my $Sigma = "\x{03C2}"; # SMALL FINAL + my $sigma = "\x{03C3}"; # SMALL + + my $S3 = "$SIGMA$Sigma$sigma"; + + print ":$S3:" =~ /:(($SIGMA)+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 829\n" : "not ok 829\n"; + print ":$S3:" =~ /:(($Sigma)+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 830\n" : "not ok 830\n"; + print ":$S3:" =~ /:(($sigma)+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 831\n" : "not ok 831\n"; + + print ":$S3:" =~ /:(([$SIGMA])+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 832\n" : "not ok 832\n"; + print ":$S3:" =~ /:(([$Sigma])+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 833\n" : "not ok 833\n"; + print ":$S3:" =~ /:(([$sigma])+):/i && $1 eq $S3 && $2 eq $sigma ? + "ok 834\n" : "not ok 834\n"; +} |