Skip to content

Commit

Permalink
Merge pull request #184 from mknos/test-errmsg
Browse files Browse the repository at this point in the history
test: improve error message
  • Loading branch information
briandfoy committed Jul 5, 2023
2 parents fd943e5 + 25f7e2f commit b384f7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ my %TEST_OPS = (
'-B' => sub { -B $_[0] },
'-L' => sub { -l $_[0] },
'-O' => sub { -O $_[0] },
'-G' => sub { bad_arg "'-G' - operator not supported", 0 },
'-G' => sub { bad_arg("'-G' - operator not supported") },
'-R' => sub { -R $_[0] },
'-S' => sub { -S $_[0] },
'-T' => sub { -T $_[0] },
Expand Down Expand Up @@ -126,7 +126,7 @@ my %TEST_OPS = (
## File comparisons
'-nt' => sub { -M $_[0] < -M $_[1] },
'-ot' => sub { -M $_[0] > -M $_[1] },
'-ef' => sub { bad_arg "'-ef' - operator not supported", 0 },
'-ef' => sub { bad_arg("'-ef' - operator not supported") },
);

## Apply a test operator to the given arguments
Expand Down Expand Up @@ -512,4 +512,3 @@ L<sh>, L<find>
=cut

0 comments on commit b384f7d

Please sign in to comment.