Skip to content

Commit

Permalink
add another cmp_ok example using <=
Browse files Browse the repository at this point in the history
Signed-off-by: Michael G. Schwern <schwern@pobox.com>
  • Loading branch information
szabgab authored and schwern committed Feb 14, 2009
1 parent 33b9727 commit a85e7ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Test/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,12 @@ is()'s use of C<eq> will interfere:

cmp_ok( $big_hairy_number, '==', $another_big_hairy_number );

It's especially useful when comparing greater-than or smaller-than
relation between values:
cmp_ok( $some_value, '<=', $upper_limit );
=cut
sub cmp_ok($$$;$) {
Expand Down

0 comments on commit a85e7ff

Please sign in to comment.