unittest.spad line 377 [edit on github]
UnittestAux is an auxiliary package to Unittest, that performs checking of tests, dealing also with fatal errors.
testAbsolutePrecision(eps)
returns the current absolute precision used for floating point comparison, and then sets it to eps
. The default value is 1.0e-15.
testComplexEqualsAux(inp ex1, ex2)
states that ex1
and ex2
should be approximately equal as complex numbers, taking into account testAbsolutePrecision and testRelativePrecision.
testEqualsAux(inp, ex1, ex2)
states that ex1
and ex2
should be equal. To sidestep the possibility that the equality function of the domain R
performs some simplifications, we convert ex1
and ex2
to InputForm
, if possible.
testEqualsAuxCmp should
be local but is conditional
testLibraryErrorAux(inp, ex)
states that ex should throw an error. Such a test will never count as a fatal error.
testNotEqualsAux(inp, ex1, ex2)
states that ex1
and ex2
should be different.
testRealEqualsAux(inp, ex1, ex2)
states that ex1
and ex2
should be approximately equal as real numbers, taking into account testAbsolutePrecision and testRelativePrecision.
testRelativePrecision(eps)
returns the current absolute precision used for floating point comparison, and then sets it to eps
. The default value is 1.0e-15.
testTrueAux(inp, ex)
states that ex should be true
.
xftestComplexEqualsAux is like testComplexEqualsAux, but expects failure.
xftestEqualsAux is like testEquals, but expects failure.
xftestLibraryErrorAux like
testLibraryErrorAux, but expects failure (that is no error).
xftestNotEqualsAux is like testEquals, but expects failure.
xftestRealEqualsAux is like testRealEqualsAux, but expects failure.
xftestTrueAux is like testTrueAux, but expects failure.