module Minitest::Assertions

Direct including types

Defined in:

assertions.cr

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.diff? #

[View source]

Instance Method Detail

def assert(actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert(message = nil, file = __FILE__, line = __LINE__, &) #

[View source]
def assert_empty(actual, message = nil, file = __FILE__, line = __LINE__) #

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

[View source]
def assert_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_nil(actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_output(stdout = nil, stderr = nil, file = __FILE__, line = __LINE__, &) #

[View source]
def assert_raises(message : String | Nil = nil, file = __FILE__, line = __LINE__, &) #

[View source]
def assert_raises(klass : T.class, file = __FILE__, line = __LINE__, &) forall T #

[View source]
def assert_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def assert_silent(file = __FILE__, line = __LINE__, &) #

[View source]
def capture_io(&) #

[View source]
def diff(expected, actual) #

[View source]
def flunk(message = "Epic Fail!", file = __FILE__, line = __LINE__) #

[View source]
def refute(actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute(message = nil, file = __FILE__, line = __LINE__, &) #

[View source]
def refute_empty(actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_in_delta(expected, actual, delta = 0.001, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_in_epsilon(a, b, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_nil(actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def refute_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) #

[View source]
def skip(message = "", file = __FILE__, line = __LINE__) #

[View source]

Macro Detail

macro assert_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__) #

[View source]
macro refute_responds_to(obj, method, message = nil, file = __FILE__, line = __LINE__) #

[View source]