Skip to content

Commit

Permalink
change example to more simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke IKEGAMI committed Apr 9, 2011
1 parent 1adfe70 commit e89c98f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rdoc
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e89c98f

Please sign in to comment.