Documentation ¶
Overview ¶
Package tolassert provides functions for asserting the equality of numbers with tolerance (in other words, it checks whether numbers are about equal).
Index ¶
- func Equal[T num.Float](t assert.TestingT, expected T, actual T, msgAndArgs ...any) bool
- func EqualTol[T num.Float](t assert.TestingT, expected T, actual, tolerance T, msgAndArgs ...any) bool
- func EqualTolSlice[T num.Float](t assert.TestingT, expected, actual []T, tolerance T, msgAndArgs ...any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal asserts that the given two numbers are about equal to each other, using a default tolerance of 0.001.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.