test-fuzzy-array
A tap/tape utility to compare arrays with an epislon value. Defaults to float epsilon, and provides clear logging on test pass/failure.
var test = var Fuzz =
Result:
Usage
almostEqual = Fuzz(t[, epsilon[, relativeTolerance]])
Returns an almostEqual
function that operates on the given test
instance of tape, tap and similar interfaces. Epsilon defaults to float precision. Relative tolerance defaults to epsilon value.
The function has the signature:
notAlmostEqual = almostEqual.not
The return value of Fuzz has a not
function which is the negated version.
Examples:
var Fuzzy =
License
MIT, see LICENSE.md for details.