Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

TestMain.cpp

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #include <iostream.h>
00010 
00011 #ifdef _DEBUG
00012 #include <afx.h>
00013 #endif
00014 
00015 #include "TestAVLRedBlackTree.h"
00016 #include "TestTrees.h"
00017 #include "TestCommandLine.h"
00018 #include "TestSolvingAlgorithms.h"
00019 
00020 #include "SearchAlgorithms.h"
00021 
00023 int main(int argc, char **argv)
00024 {
00025 #ifdef _DEBUG
00026     CMemoryState oldMemState, newMemState, diffMemState;
00027     oldMemState.Checkpoint();
00028 #endif
00029 
00030     //test the trees
00031     TestRedBlackTree();
00032     TestAVLRedBlackTree(argc, argv);
00033     TestAVLTree(argc, argv);
00034     TestGLIBTree(argc, argv);
00035 
00036     //test CommandLineArguments
00037     TestCommandLineArguments* TestCommandLine = new TestCommandLineArguments();
00038     TestCommandLine->TestConstructor();
00039     TestCommandLine->TestParse();
00040     TestCommandLine->TestVerify();
00041     delete TestCommandLine;
00042 
00043     //test the solving algorithms
00044 //  TestAllSolvingAlgorithms();
00045     
00046     //test each game
00047     TestEachGame();
00048 
00049 #ifdef _DEBUG
00050     newMemState.Checkpoint();
00051     if( diffMemState.Difference( oldMemState, newMemState ) )
00052     {
00053         diffMemState.DumpStatistics();
00054         TRACE( "Memory leaked detected!!!\n" );
00055         cout << "Memory leaked detected!!!" << endl;
00056         _CrtDumpMemoryLeaks();
00057     }
00058 #endif
00059 
00060     return 0;
00061 }

Generated on Sat Nov 5 11:20:16 2005 for Cpp Freecell Solver by  doxygen 1.4.4