assert_false

D

Dmitry N Orlov

In Test Unit need assert_false. Mr.Talbott, do You include this in package?
Of course, everyone can do it :)
#assertions.rb
# Passes if boolean is false.
public
def assert_false(boolean, message="")
_wrap_assertion do
assert_block("assert should not be called with a block.") {
!block_given? }
assert_block(message) { !boolean }
end
end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top