void testDataStructures() { testFileCache(); testBitMap(); testQueue(); testPriorityQueue(); testHashMap(); cout << "Datastructures test Done" << endl; }
int main(int argc, char* argv[]){ if(argc<2){ printf("Usage: testapp -[hb]\n\t-h: test using hashmap\n\t-b: test using burst trie\n"); return 1; } std::string dictFileName="eng_com.dic"; std::string srchFileName="toSearch.dic"; if(strcmp(argv[1],"-b")==0) testBurstTrie(dictFileName,srchFileName); if(strcmp(argv[1],"-h")==0) testHashMap(dictFileName,srchFileName); return 0; }
void testDataStructures() { testFileCache(); testBitMap(); testQueue(); testPriorityQueue(); testHashMap(); ConcurrentLinkedList<int> cll; ConcurrentLinkedList<CharString> cll2; ConcurrentLinkedList<CharString*> cll3; ConcurrentLinkedList<CharString**> cll4; CharString** p = (CharString**)malloc(sizeof(CharString)); p[0] = new CharString("blah"); cll.add(1); cll2.add(CharString("blah")); cll3.add(new CharString("blah")); cll4.add(p); cout << "Datastructures test Done" << endl; }