From: Jarkko Hietaniemi Date: Thu, 3 Jan 2002 20:30:55 +0000 (+0000) Subject: A bit of testing for #14046. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=925f9e003e797678d65aaa00bc7cbb7222b25c82;p=p5sagit%2Fp5-mst-13.2.git A bit of testing for #14046. p4raw-id: //depot/perl@14047 --- diff --git a/t/op/pat.t b/t/op/pat.t index 5cdb2e5..d103378 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ $| = 1; -print "1..834\n"; +print "1..842\n"; BEGIN { chdir 't' if -d 't'; @@ -2578,3 +2578,33 @@ print "# some Unicode properties\n"; print ":$S3:" =~ /:(([$sigma])+):/i && $1 eq $S3 && $2 eq $sigma ? "ok 834\n" : "not ok 834\n"; } + +{ + print "# LATIN SMALL LETTER SHARP S\n"; + + use charnames ':full'; + + print "\N{LATIN SMALL LETTER SHARP S}" =~ + /\N{LATIN SMALL LETTER SHARP S}/ ? "ok 835\n" : "not ok 835\n"; + + print "\N{LATIN SMALL LETTER SHARP S}" =~ + /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 836\n" : "not ok 836\n"; + + print "\N{LATIN SMALL LETTER SHARP S}" =~ + /[\N{LATIN SMALL LETTER SHARP S}]/ ? "ok 837\n" : "not ok 837\n"; + + print "\N{LATIN SMALL LETTER SHARP S}" =~ + /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 838\n" : "not ok 838\n"; + + print "ss" =~ + /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 839\n" : "not ok 839\n"; + + print "SS" =~ + /\N{LATIN SMALL LETTER SHARP S}/i ? "ok 840\n" : "not ok 840\n"; + + print "ss" =~ + /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 841\n" : "not ok 841\n"; + + print "SS" =~ + /[\N{LATIN SMALL LETTER SHARP S}]/i ? "ok 842\n" : "not ok 842\n"; +}