package
Version:
v0.9.2
Opens a new window with list of versions in this module.
Published: May 18, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
-
func EqualWithNaNs(t assert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool
-
func Equalish(t assert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool
-
func InDeltaWithNaNs(t assert.TestingT, expected, actual interface{}, delta float64, ...) bool
func EqualWithNaNs(
t assert.TestingT,
expected, actual interface{},
msgAndArgs ...interface{},
) bool
EqualWithNaNs compares two numbers for equality, accounting for NaNs.
func Equalish(
t assert.TestingT,
expected, actual interface{},
msgAndArgs ...interface{},
) bool
Equalish asserts that two objects are equal. Looser than assert.Equal since
it checks for equality of printing expected vs printing actual.
assert.Equal(t, 123, 123, "123 and 123 should be equal")
Returns whether the assertion was successful (true) or not (false).
InDeltaWithNaNs compares two floats for equality within a delta,
accounting for NaNs.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.