class Minitest::Expectation(T)

Included Modules

Defined in:

expectations.cr

Constructors

Instance Method Summary

Instance methods inherited from module Minitest::Assertions

assert(actual, message = nil, file = __FILE__, line = __LINE__) : Bool
assert(message = nil, file = __FILE__, line = __LINE__, &) : Bool
assert
, assert_empty(actual, message = nil, file = __FILE__, line = __LINE__) : Bool assert_empty, assert_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__) : Bool assert_equal, assert_in_delta(expected : Number, actual : Number, delta : Number = 0.001, message = nil, file = __FILE__, line = __LINE__) : Bool assert_in_delta, assert_in_epsilon(a : Number, b : Number, epsilon : Number = 0.001, message = nil, file = __FILE__, line = __LINE__) : Bool assert_in_epsilon, assert_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) : Bool assert_includes, assert_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) : Bool assert_instance_of, assert_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__) : Bool
assert_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) : Bool
assert_match
, assert_nil(actual, message = nil, file = __FILE__, line = __LINE__) : Bool assert_nil, assert_output(stdout = nil, stderr = nil, file = __FILE__, line = __LINE__, &) : Bool assert_output, assert_raises(message : String | Nil = nil, file = __FILE__, line = __LINE__, &) : Exception
assert_raises(klass : T.class, file = __FILE__, line = __LINE__, &) : T forall T
assert_raises
, assert_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) : Bool assert_same, assert_silent(file = __FILE__, line = __LINE__, &) : Bool assert_silent, capture_io(&) : Tuple(String, String) capture_io, diff(expected : String, actual : String) : String
diff(expected, actual) : String
diff
, flunk(message = "Epic Fail!", file = __FILE__, line = __LINE__) : NoReturn flunk, message(message : Nil, &block : -> String) : -> String
message(message : String, &block : -> String) : -> String
message(message : Proc(String), &block : -> String) : -> String
message
, refute(actual, message = nil, file = __FILE__, line = __LINE__) : Bool
refute(message = nil, file = __FILE__, line = __LINE__, &) : Bool
refute
, refute_empty(actual, message = nil, file = __FILE__, line = __LINE__) : Bool refute_empty, refute_equal(expected, actual, message = nil, file = __FILE__, line = __LINE__) : Bool refute_equal, refute_in_delta(expected : Number, actual : Number, delta : Number = 0.001, message = nil, file = __FILE__, line = __LINE__) : Bool refute_in_delta, refute_in_epsilon(a : Number, b : Number, epsilon : Number = 0.001, message = nil, file = __FILE__, line = __LINE__) : Bool refute_in_epsilon, refute_includes(collection, obj, message = nil, file = __FILE__, line = __LINE__) : Bool refute_includes, refute_instance_of(cls, obj, message = nil, file = __FILE__, line = __LINE__) : Bool refute_instance_of, refute_match(pattern : Regex, actual, message = nil, file = __FILE__, line = __LINE__) : Bool
refute_match(pattern, actual, message = nil, file = __FILE__, line = __LINE__) : Bool
refute_match
, refute_nil(actual, message = nil, file = __FILE__, line = __LINE__) : Bool refute_nil, refute_same(expected, actual, message = nil, file = __FILE__, line = __LINE__) : Bool refute_same, skip(message = "", file = __FILE__, line = __LINE__) : NoReturn skip

Constructor Detail

def self.new(target : T) #

[View source]

Instance Method Detail

def must_be_close_to(expected, delta = 0.001, message = nil, file = __FILE__, line = __LINE__) #

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

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

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

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

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

[View source]
def must_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) #

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

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

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

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

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

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

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

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

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

[View source]
def wont_be_within_epsilon(expected, epsilon = 0.001, message = nil, file = __FILE__, line = __LINE__) #

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

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

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

[View source]