module Crotest::Assertions

Defined in:

crotest/assertions.cr

Macro Summary

Macro Detail

macro assert(expression, msg = nil, file = __FILE__, line = __LINE__) #

Assert that expression is not nil or false.


[View source]
macro assert_equal(expected, actual, msg = nil, file = __FILE__, line = __LINE__) #

Assert that actual and expected values are equal.


[View source]
macro assert_raise(expected = Exception, msg = nil, file = __FILE__, line = __LINE__) #

Assert that the block raises an expected exception.


[View source]
macro reject(expression, msg = nil, file = __FILE__, line = __LINE__) #

Assert that expression is falsey


[View source]