Documentation
¶
Index ¶
- Constants
- func AssertEqual(expected, actual interface{}, delta cmpr.Tolerance) error
- func Equal(t TestingT, expected, actual interface{}, msg ...interface{}) bool
- func EqualInDelta(t TestingT, expected, actual interface{}, delta cmpr.Tolerance, ...) bool
- func Message(msg ...interface{}) string
- type Assert
- type TestingT
Constants ¶
View Source
const ( // Small is the value that will be passed into AssertEqualizer Small cmpr.Tolerance = 1e-10 )
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual can compare anything that implements geomtest.AssertEqualizer. There is also logic to handle comparing float64 values Any two slices whose elements can be compared with Equal can be compared. The provided delta value will be passed to anything that implements AssertEqualizer. If the equality check fails, an error is returned.
func Equal ¶
Equal calls AssertEqual with the default value of Small. If there is an error it is passed into t.Error. The return bool will be true if the values were equal.
Types ¶
Click to show internal directories.
Click to hide internal directories.