Skip to content

Commit a4c9cf0

Browse files
committed
error msg differ slightly
1 parent cd5df3b commit a4c9cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comp/bproto.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ my $bar = "bar";
1717

1818
sub test_too_many {
1919
eval $_[0];
20-
print "not " unless $@ =~ /^Too many arguments/;
20+
print "not " unless $@ =~ /^Too many arguments|Too many positional parameters/;
2121
printf "ok %d\n",$i++;
2222
}
2323

2424
sub test_too_few {
2525
eval $_[0];
26-
print "not " unless $@ =~ /^Not enough arguments/;
26+
print "not " unless $@ =~ /(^Not enough arguments|no arguments)/;
2727
printf "ok %d\n",$i++;
2828
}
2929

0 commit comments

Comments
 (0)