struct Spec::AlmostEqualExpectation(T)

Overview

Similar to EqualExpectation(T), but calls Matrix#almost_eq Useful in Matrix specs where exact equality isn't possible

Defined in:

matrix/spec_helpers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(expected_value : T) #

[View source]

Instance Method Detail

def failure_message(actual_value) #

[View source]
def match(actual_value) #

[View source]
def negative_failure_message(actual_value) #

[View source]