X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fpos.t;h=f3bc23c84ac861a6e827dd40d95574dbe33262cc;hb=076d9a11d18d650bf0992032a42c6e83fb1c2ea6;hp=46811b7bbc7d5201143c309bbfa0cb8be0e44d59;hpb=02c45c47911841b1dd690d10a4f7a2f267e0a83b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/pos.t b/t/op/pos.t old mode 100644 new mode 100755 index 46811b7..f3bc23c --- a/t/op/pos.t +++ b/t/op/pos.t @@ -1,6 +1,6 @@ #!./perl -print "1..3\n"; +print "1..4\n"; $x='banana'; $x=~/.a/g; @@ -14,3 +14,10 @@ sub f { my $p=$_[0]; return $p } $x=~/.a/g; if (f(pos($x))==4) {print "ok 3\n"} else {print "not ok 3\n";} +# Is pos() set inside //g? (bug id 19990615.008) +$x = "test string?"; $x =~ s/\w/pos($x)/eg; +print "not " unless $x eq "0123 5678910?"; +print "ok 4\n"; + + +