Permalink
Browse files

add another cmp_ok example using <=

Signed-off-by: Michael G. Schwern <schwern@pobox.com>
  • Loading branch information...
szabgab authored and schwern committed Feb 13, 2009
1 parent 33b9727 commit a85e7ff480ae716b011008c439f0dd775d06e515
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Test/More.pm
View
@@ -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($$$;$) {

0 comments on commit a85e7ff

Please sign in to comment.