int CommonBigNum(int argc, char *const *argv) { plan_tests(kTestTestCount); for(int i=0; i<10; i++) { testCreateFree(); testHexString(); testData(); testI(); testCompare(); testBitCount(); testAddSub(); testAddSubI(); testShift(); testMod(); testModI(); testModExp(); testMul(); testMulI(); testPrime(); testDiv(); testMulMod(); } return 0; }
void run () { testSigNum (); testBeastZero (); testComparisons (); testAddSub (); }
bool bigfixedTest::doTests() { TRACE_FUNCTION(); testPrimatives(); testInitialise(); testCompare(); testAddSub (); testShift (); testMul (); testDiv (); LOGMSG (INFO, ""); LOGMSG (INFO, neo::makeString("************************************************************")); LOGMSG (INFO, neo::makeString("** Tests complete: ", m_passed?" [PASSED] ":" [FAILED] ")); LOGMSG (INFO, neo::makeString("** Tests Passed: ", m_numPassed)); LOGMSG (INFO, neo::makeString("** Tests Failed: ", m_numFailed)); LOGMSG (INFO, neo::makeString("************************************************************")); LOGMSG (INFO, ""); return m_passed; }