testing

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualWithNaNs

func EqualWithNaNs(
	t assert.TestingT,
	expected, actual interface{},
	msgAndArgs ...interface{},
) bool

EqualWithNaNs compares two numbers for equality, accounting for NaNs.

func Equalish

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).

func InDeltaWithNaNs

func InDeltaWithNaNs(
	t assert.TestingT,
	expected, actual interface{},
	delta float64,
	msgAndArgs ...interface{},
) bool

InDeltaWithNaNs compares two floats for equality within a delta, accounting for NaNs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL