diff options
author | Graham Barr <gbarr@pobox.com> | 1998-07-12 14:57:47 -0500 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-13 02:44:30 +0000 |
commit | 8782bef2aa2ca158fdd0d7436e68ae3ac2b01ff7 (patch) | |
tree | 5014b290517414faa6839abd622ed81e17116829 /t | |
parent | c70c8a0a59777ed7fb7075471185210bc2169b49 (diff) | |
download | perl-8782bef2aa2ca158fdd0d7436e68ae3ac2b01ff7.tar.gz |
added patch, tweaked PERL_OBJECT things
Message-Id: <19980712195747.C493@pobox.com>
Subject: [ PATCH perl5.004_72] patch to add qr//
p4raw-id: //depot/perl@1461
Diffstat (limited to 't')
-rwxr-xr-x | t/op/pat.t | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index 90623fbfca..46d2b91792 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ # $RCSfile: pat.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:12 $ -print "1..130\n"; +print "1..135\n"; BEGIN { chdir 't' if -d 't'; @@ -450,8 +450,27 @@ print "not " unless $^R eq '79' and $x eq '12'; print "ok $test\n"; $test++; -# This should be changed to qr/\b\v$/ ASAP -print "not " unless study(/\b\v$/) eq '(?:\bv$)'; +print "not " unless qr/\b\v$/i eq '(?i-xsm:\bv$)'; +print "ok $test\n"; +$test++; + +print "not " unless qr/\b\v$/s eq '(?s-xim:\bv$)'; +print "ok $test\n"; +$test++; + +print "not " unless qr/\b\v$/m eq '(?m-xis:\bv$)'; +print "ok $test\n"; +$test++; + +print "not " unless qr/\b\v$/x eq '(?x-ism:\bv$)'; +print "ok $test\n"; +$test++; + +print "not " unless qr/\b\v$/xism eq '(?msix:\bv$)'; +print "ok $test\n"; +$test++; + +print "not " unless qr/\b\v$/ eq '(?-xism:\bv$)'; print "ok $test\n"; $test++; @@ -487,7 +506,7 @@ print "not " unless $1 and /$1/; print "ok $test\n"; $test++; -$a=study/(?{++$b})/; +$a=qr/(?{++$b})/; $b = 7; /$a$a/; print "not " unless $b eq '9'; |