module Microtest::PowerAssert
Direct including types
Defined in:
microtest/power_assert.crmicrotest/power_assert_formatter.cr
Instance Method Summary
Macro Summary
- assert(expression)
- reflect(expression)
-
reflect_tuple(expression)
In order to evaluate the expression only once, and not multiple times, we have to return a tuple of node and value, so that the returned values can be used in calls without having to re-evaluate them.
Instance Method Detail
def assert_raises(exception_type : E.class, file : String = __FILE__, line : String = __LINE__, &) forall E
#
Macro Detail
macro reflect_tuple(expression)
#
In order to evaluate the expression only once, and not multiple times, we have to return a tuple of node and value, so that the returned values can be used in calls without having to re-evaluate them.