module Microtest::PowerAssert

Direct including types

Defined in:

microtest/power_assert.cr
microtest/power_assert_formatter.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def assert_raises(exception_type : E.class, file : String = __FILE__, line : String = __LINE__, &) forall E #

[View source]

Macro Detail

macro assert(expression) #

[View source]
macro reflect(expression) #

[View source]
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.


[View source]