|
PLearn 0.1
|
#include "PPTest.h"
Go to the source code of this file.
Classes | |
| class | PLearn::Parent |
| class | PLearn::ChildA |
| class | PLearn::ChildB |
| class | PLearn::Other |
| class | PLearn::Test_PP |
Namespaces | |
| namespace | PLearn |
< for swap | |
Defines | |
| #define | T_ERR(_Type__, _The_Message__) |
| #define | T_ASSERT(__Test_, __Message_) |
| #define | DO_TEST(__name, __testFunction) |
| #define | MAX_SIZE 11 |
Variables | |
| bool | __result = false |
| Maybe not clean, but it doesn't work otherwise. | |
Definition in file PPTest.cc.
| #define DO_TEST | ( | __name, | |
| __testFunction | |||
| ) |
__result = false;\ cout << endl;\ cout << "Step:\t " << __name << endl;\ cout << "Doing ..." << endl << endl;\ __result = __testFunction;\ if(__result){ cout << "PASSED" << endl; }\ else{ PLERROR("****FAIL****"); }\ cout << endl << endl;
Definition at line 59 of file PPTest.cc.
Referenced by PLearn::PPTest::perform().
| #define MAX_SIZE 11 |
Definition at line 69 of file PPTest.cc.
Referenced by PLearn::Test_PP::Test_PP().
| #define T_ASSERT | ( | __Test_, | |
| __Message_ | |||
| ) |
if( !(__Test_) ){\ T_ERR("T_ASSERT", (__Message_) )};
Definition at line 54 of file PPTest.cc.
Referenced by PLearn::Test_PP::affectationFromOrdPtr(), PLearn::Test_PP::affectationFromPP(), PLearn::Test_PP::conversionOPchildA(), PLearn::Test_PP::conversionOPchildB(), PLearn::Test_PP::conversionOPparent(), PLearn::Test_PP::copieConsChildPP(), PLearn::Test_PP::copieConsOrdinaryPtr(), PLearn::Test_PP::copieConsSameTypePP(), PLearn::Test_PP::invariants(), and PLearn::Test_PP::tryDeepCopy().
| #define T_ERR | ( | _Type__, | |
| _The_Message__ | |||
| ) |
cerr << "\n============================================================" << endl;\ cerr << "" << _Type__ << " " << flush;\ cerr << "At " << __FILE__ << ":" << __LINE__; \ cerr << endl << _The_Message__ << endl;\ cerr << "============================================================\n" << endl;\ exit(1);
1.7.4