Permalink
Browse files

change example to more simple

  • Loading branch information...
1 parent 1adfe70 commit e89c98f5d5e2b9aa8ae4b70a3bc1c0645e995bfa Daisuke IKEGAMI committed Apr 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
@@ -85,7 +85,7 @@ returns nil object.
# NG case
RushCheck::Assertion(Integer) { |x|
- assertion_equal x*x, x**2 # NG because this returns nil
+ assertion_equal x+x, 2*x # NG because this returns nil
}.check
On the other hand, the check method in RushCheck returns either true or false if
@@ -95,7 +95,7 @@ like this;
# OK
assertion_equal true,
RushCheck::Assertion(Integer) { |x|
- x*x == x**2
+ x+x == 2*x
}.check
== Contributing to rushcheck

0 comments on commit e89c98f

Please sign in to comment.