Ejemplo n.º 1
0
//A simple main function which creates a list, and tests it.
int main(){
  testCtor();
  testBasicMethods();
  testGrow();

  return 0;
}
Ejemplo n.º 2
0
//A simple main function which creates a queue, and tests it.
int main(){
  ArrayQueue<int> testQueue;
  testCtor(testQueue);
  testAddRemove(testQueue);
  testAroundTheHorn(testQueue);
  testGrow(testQueue);
  testRemoveException(testQueue);

  return 0;
}
Ejemplo n.º 3
0
int main(void)
{

    RwlockInit( &lock, 1 );

    testInit();
    testMark();
    testGrow();
    testGather();

    RwlockCleanup( &lock );
    return 0;
}