Beispiel #1
0
void testDataStructures() {
    testFileCache();
    testBitMap();
    testQueue();
    testPriorityQueue();
    testHashMap();

    cout << "Datastructures test Done" << endl;
}
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;
}