@nicolawealth/assert_nearly_equal
v0.0.2
Published
 .
Interface
The package exports one function assertNearlyEqual(actual, expected, errorMsg, epsilon) where actual and expected are the two values to be compared. errorMsg is the string message which will be displayed if the assert fails. epsilon is the (inclusive) upperbound on the difference between the actual and expected values and is defaulted to 0.000001 if not specified.
Testing
Tests can be found in assest_nearly_equal.test.ts located in asset_nearly_equal/src and should be run with sinon, mocha and nyc.
