diff options
author | John Karr <brainbuz@brainbuz.org> | 2020-11-12 03:30:49 -0500 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2020-11-24 10:28:48 +1100 |
commit | a5fba4f1467e17d87a18ed69501a89ffa05d25ce (patch) | |
tree | 6b631e209087ad178b68ce03c3735ddd1151a895 /t | |
parent | 4281700a59b8da499ae9f1980d60c7e958a6583d (diff) | |
download | perl-a5fba4f1467e17d87a18ed69501a89ffa05d25ce.tar.gz |
fix typo in comp/parser.t
3 similar tests eval a sub with a list of variables, $r is repeated at the
end of the list, but the errors that are being checked have nothing to do with
the repeated variable. This causes a warning enabled.
Diffstat (limited to 't')
-rw-r--r-- | t/comp/parser.t | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/comp/parser.t b/t/comp/parser.t index c928db6cfc..fbfe5398e3 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -243,7 +243,7 @@ eval q[ like($@, qr/Missing right curly/, 'nested sub syntax error' ); eval q[ - sub { my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s,$r); + sub { my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s); sub { my $z ]; like($@, qr/Missing right curly/, 'nested sub syntax error 2' ); @@ -256,7 +256,7 @@ eval q[ like($@, qr/Can't locate DieDieDie.pm/, 'croak cleanup' ); eval q[ - sub { my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s,$r); + sub { my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s); use DieDieDie; ]; @@ -265,7 +265,7 @@ like($@, qr/Can't locate DieDieDie.pm/, 'croak cleanup 2' ); eval q[ my @a; - my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s,$r); + my ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s); @a =~ s/a/b/; # compile-time error use DieDieDie; ]; @@ -639,10 +639,10 @@ check($this_file, 3, "bare line"); # line 5 check($this_file, 5, "bare line with leading space"); -#line 7 +#line 7 check($this_file, 7, "trailing space still valid"); -# line 11 +# line 11 check($this_file, 11, "leading and trailing"); # line 13 @@ -666,7 +666,7 @@ check(qr/^CLINK CLOINK BZZT$/, 31, "filename with spaces in quotes"); #line 37 "THOOM THOOM" check(qr/^THOOM THOOM$/, 37, "filename with tabs in quotes"); -#line 41 "GLINK PLINK GLUNK DINK" +#line 41 "GLINK PLINK GLUNK DINK" check(qr/^GLINK PLINK GLUNK DINK$/, 41, "a space after the quotes"); #line 43 "BBFRPRAFPGHPP |