abstract class Microtest::PowerAssert::Value

Overview

Return fixed types so the formatter never reads the union of all asserted types through value. Compute each property only where it is needed: inspecting a value or comparing it with false can invoke user code.

Direct Known Subclasses

Defined in:

microtest/power_assert.cr

Instance Method Summary

Instance Method Detail

abstract def boolean? : Bool #

[View source]
abstract def inspected : String #

[View source]
abstract def not_false? : Bool #

[View source]
abstract def simplified_value(max_length : Int32) : String #

[View source]
abstract def truthy? : Bool #

[View source]