module Crotest::Assertions
Defined in:
crotest/assertions.crMacro Summary
-
assert(expression, msg = nil, file = __FILE__, line = __LINE__)
Assert that expression is not nil or false.
-
assert_equal(expected, actual, msg = nil, file = __FILE__, line = __LINE__)
Assert that actual and expected values are equal.
-
assert_raise(expected = Exception, msg = nil, file = __FILE__, line = __LINE__)
Assert that the block raises an expected exception.
-
reject(expression, msg = nil, file = __FILE__, line = __LINE__)
Assert that expression is falsey
Macro Detail
macro assert(expression, msg = nil, file = __FILE__, line = __LINE__)
#
Assert that expression is not nil or false.
macro assert_equal(expected, actual, msg = nil, file = __FILE__, line = __LINE__)
#
Assert that actual and expected values are equal.
Assert that the block raises an expected exception.
macro reject(expression, msg = nil, file = __FILE__, line = __LINE__)
#
Assert that expression is falsey