From: Gurusamy Sarathy Date: Fri, 18 Feb 2000 04:58:26 +0000 (+0000) Subject: stronger testcase for change#5126 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aeaf5620e0d123aeb6a6ba30ef2e89c6f5fc26d0;p=p5sagit%2Fp5-mst-13.2.git stronger testcase for change#5126 p4raw-link: @5126 on //depot/perl: 9442cb0ec25041ea5b061c40868e0a3c8bfbb2ab p4raw-id: //depot/perl@5127 --- diff --git a/t/op/pat.t b/t/op/pat.t index 9dc3ac7..439796d 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -906,50 +906,75 @@ print "ok $test\n"; $test++; @a = map chr,0..255; -print "not " if grep(/\S/,@a) != grep(/[^\s]/,@a); + +@b = grep(/\S/,@a); +@c = grep(/[^\s]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\S/,@a) != grep(/[\S]/,@a); +@b = grep(/\S/,@a); +@c = grep(/[\S]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\s/,@a) != grep(/[^\S]/,@a); +@b = grep(/\s/,@a); +@c = grep(/[^\S]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\s/,@a) != grep(/[\s]/,@a); +@b = grep(/\s/,@a); +@c = grep(/[\s]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\D/,@a) != grep(/[^\d]/,@a); +@b = grep(/\D/,@a); +@c = grep(/[^\d]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\D/,@a) != grep(/[\D]/,@a); +@b = grep(/\D/,@a); +@c = grep(/[\D]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\d/,@a) != grep(/[^\D]/,@a); +@b = grep(/\d/,@a); +@c = grep(/[^\D]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\d/,@a) != grep(/[\d]/,@a); +@b = grep(/\d/,@a); +@c = grep(/[\d]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\W/,@a) != grep(/[^\w]/,@a); +@b = grep(/\W/,@a); +@c = grep(/[^\w]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\W/,@a) != grep(/[\W]/,@a); +@b = grep(/\W/,@a); +@c = grep(/[\W]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\w/,@a) != grep(/[^\W]/,@a); +@b = grep(/\w/,@a); +@c = grep(/[^\W]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++; -print "not " if grep(/\w/,@a) != grep(/[\w]/,@a); +@b = grep(/\w/,@a); +@c = grep(/[\w]/,@a); +print "not " if "@b" ne "@c"; print "ok $test\n"; $test++;