diff options
-rwxr-xr-x | t/op/tr.t | 6 | ||||
-rw-r--r-- | t/test.pl | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -6,7 +6,7 @@ BEGIN { require './test.pl'; } -plan tests => 99; +plan tests => 100; my $Is_EBCDIC = (ord('i') == 0x89 & ord('J') == 0xd1); @@ -383,3 +383,7 @@ is( scalar keys %foo, 0, " doesn't extend the hash"); $x = \"foo"; is( $x =~ tr/A/A/, 2, 'non-modifying tr/// on a scalar ref' ); is( ref $x, 'SCALAR', " doesn't stringify its argument" ); + +# rt.perl.org 36622. Perl didn't like a y/// at end of file. No trailing +# newline allowed. +fresh_perl_is(q[$_ = "foo"; y/A-Z/a-z/], ''); @@ -579,7 +579,7 @@ sub _fresh_perl { {if (-e _ and -f _)} } - print TEST $prog, "\n"; + print TEST $prog; close TEST or die "Cannot close $tmpfile: $!"; my $results = runperl(%$runperl_args); |