00001 #include <cppunit/TestCaller.h> 00002 #include <cppunit/TestCase.h> 00003 #include <cppunit/TestSuite.h> 00004 00005 #include "exp.h" 00006 00007 class ExpTest : public CppUnit::TestCase { 00008 protected: 00009 Const* m_99; 00010 Location* m_rof2; 00011 00012 public: 00013 ExpTest(std::string name) : CppUnit::TestCase (name) 00014 {} 00015 00016 virtual void registerTests(CppUnit::TestSuite* suite); 00017 00018 int countTestCases () const; 00019 00020 void setUp (); 00021 void tearDown (); 00022 00023 void test99 (); 00024 void testFlt (); 00025 void testRegOf2 (); 00026 00027 void testBinaries (); 00028 void testUnaries (); 00029 00030 void testIsAfpTerm(); 00031 00032 void testCompare1(); 00033 void testCompare2(); 00034 void testCompare3(); 00035 void testCompare4(); 00036 void testCompare5(); 00037 void testCompare6(); 00038 00039 void testSearchReplace1(); 00040 void testSearchReplace2(); 00041 void testSearchReplace3(); 00042 void testSearchReplace4(); 00043 00044 void testSearch1(); 00045 void testSearch2(); 00046 void testSearch3(); 00047 void testSearchAll(); 00048 00049 void testPartitionTerms(); 00050 void testAccumulate(); 00051 void testSimplifyArith(); 00052 void testSimplifyUnary(); 00053 void testSimplifyBinary(); 00054 void testSimplifyAddr(); 00055 void testSimpConstr(); 00056 00057 void testLess(); 00058 void testMapOfExp(); 00059 00060 void testList(); 00061 void testParen(); 00062 void testFixSuccessor(); 00063 void testKillFill(); 00064 void testAssociativity(); 00065 00066 void testSubscriptVar(); 00067 void testTypeOf(); 00068 void testSetConscripts(); 00069 void testAddUsedLocs(); 00070 void testSubscriptVars(); 00071 void testVisitors(); 00072 }; 00073