Go to the source code of this file.
Classes | |
class | RegisterTestInfo< T > |
class | CalcChecker |
class | CalcTestInfo< T > |
class | CalcAssemblerTestCase |
class | CalcAssemblerTest |
Functions | |
void | convertFloatToInt (RegisterRef< int > *regOut, RegisterRef< float > *regIn) |
int | main (int argc, char **argv) |
FENNEL_UNIT_TEST_SUITE (CalcAssemblerTest) | |
Variables | |
bool | verbose = false |
bool | showProgram = true |
void convertFloatToInt | ( | RegisterRef< int > * | regOut, | |
RegisterRef< float > * | regIn | |||
) |
Definition at line 2522 of file CalcAssemblerTest.cpp.
References RegisterRef< TMPLT >::value().
Referenced by testConvertFloatToIntTypes(), and CalcAssemblerTest::testExtended().
FENNEL_UNIT_TEST_SUITE | ( | CalcAssemblerTest | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 2685 of file CalcAssemblerTest.cpp.
References CalcAssemblerTestCase::getFailedNumber(), CalcAssemblerTestCase::getPassedNumber(), CalcAssemblerTestCase::getTestNumber(), ProgramName, and InstructionFactory::registerInstructions().
02686 { 02687 ProgramName = argv[0]; 02688 InstructionFactory inst(); 02689 InstructionFactory::registerInstructions(); 02690 02691 try { 02692 CalcAssemblerTest test; 02693 test.testAssembler(); 02694 } catch (exception& ex) { 02695 cerr << ex.what() << endl; 02696 } 02697 02698 cout << CalcAssemblerTestCase::getPassedNumber() << "/" 02699 << CalcAssemblerTestCase::getTestNumber() << " tests passed" << endl; 02700 return CalcAssemblerTestCase::getFailedNumber(); 02701 }
bool showProgram = true |
Definition at line 43 of file CalcAssemblerTest.cpp.
Referenced by CalcAssemblerTestCase::assemble().
bool verbose = false |
Definition at line 42 of file CalcAssemblerTest.cpp.
Referenced by CalcAssemblerTestCase::passed(), and TestBase::readParams().