UnittestΒΆ
unittest.spad line 613 [edit on github]
Unittest is a package that provides functions for regression testing. Note that it calls the interpreter, thus, all functions require that their arguments be passed as strings.
- testComplexEquals: (String, String) -> Void
testComplexEquals(ex1, ex2)states thatex1andex2should be approximately equal as complex numbers, taking into acount testAbsolutePrecision and testRelativePrecision.
- testEquals: (String, String) -> Void
testEquals(ex1, ex2)states thatex1andex2should be equal. To sidestep the possibility that the equality function of the domainRperforms some simplifications, we convertex1andex2toInputForm, if possible.
- testLibraryError: String -> Void
testLibraryError exstates that ex should throw an error. Such a test will never count as a fatal error.
- testNotEquals: (String, String) -> Void
testNotEquals(ex1, ex2)states thatex1andex2should be different.