Assert Class
Additional assertions for unit tests.
Item Index
Methods
- areWithinEpsilon static
- complexWithinEpsilon static
Methods
areWithinEpsilon
(
static
-
expected -
actual -
epsilon
Asserts that the mantissas of two values are with epsilon of each other. (The test automatically fails if the exponents are different.)
complexWithinEpsilon
(
static
-
expected -
actual -
epsilon
Asserts that both real and imaginary parts of two complex values are with epsilon of each other. (The test automatically fails if the exponents are different.)
Parameters:
-
expectedComplexNumberthe expected value
-
actualComplexNumberthe actual value to test
-
epsilonComplexNumberthe maximum allowed difference in the mantissas
