diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2001-03-14 07:01:29 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2001-03-14 07:01:29 +0000 |
commit | 9a135c90b92a02e2daa86f93310af425135463f4 (patch) | |
tree | f827ea54a94fcdcd6ec684a8fb23109327b1ed83 /t | |
parent | f06c8e5ba202f1bd58e7b5728b75fa5fa0032675 (diff) | |
download | perl-9a135c90b92a02e2daa86f93310af425135463f4.tar.gz |
reenable change#9145 (the test was busted due to a missing
C<print "ok 27\n">)
p4raw-link: @9145 on //depot/perl: 4af0bda917eceeead6e59e5dc7c6b28fce055a0a
p4raw-id: //depot/perl@9151
Diffstat (limited to 't')
-rwxr-xr-x | t/op/pat.t | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index 293e74869e..4ba99190d0 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -70,24 +70,23 @@ $* = 1; # test 3 only tested the optimized version--this one is for real if ("ab\ncd\n" =~ /^cd/) {print "ok 24\n";} else {print "not ok 24\n";} $* = 0; -#$XXX{123} = 123; -#$XXX{234} = 234; -#$XXX{345} = 345; -# -#@XXX = ('ok 25','not ok 25', 'ok 26','not ok 26','not ok 27'); -#while ($_ = shift(@XXX)) { -# ?(.*)? && (print $1,"\n"); -# /not/ && reset; -# /not ok 26/ && reset 'X'; -#} -# -#while (($key,$val) = each(%XXX)) { -# print "not ok 27\n"; -# exit; -#} -# -#print "ok 27\n"; -for (25..27) { print "ok $_\n" } +$XXX{123} = 123; +$XXX{234} = 234; +$XXX{345} = 345; + +@XXX = ('ok 25','not ok 25', 'ok 26','not ok 26','not ok 27'); +while ($_ = shift(@XXX)) { + ?(.*)? && (print $1,"\n"); + /not/ && reset; + /not ok 26/ && reset 'X'; +} + +while (($key,$val) = each(%XXX)) { + print "not ok 27\n"; + exit; +} + +print "ok 27\n"; 'cde' =~ /[^ab]*/; 'xyz' =~ //; |