summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/test.cc b/src/test.cc
index 924cba3..5a1bce5 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -33,13 +33,11 @@ void DoCombTest(int number)
cerr << _("Creation of a priority list and adding ") << number << _(" random entrie(s)...");
T = newlist();
for (i = 1; i <= number; i++) {
- T->Dump(cerr);
T->Insert(rand() % P_INFINITY, NULL);
}
cerr << _("Ok.\nDeleting the list...");
oK = P_INFINITY;
for (i = number; i >= 1; i--) {
- T->Dump(cerr);
if (T->n() != i) {
cerr << _("List has ") << T->n() << _(" keys. Expecting ") << i << endl;
exception(1, _("List corrupted."));
@@ -75,13 +73,11 @@ void FullTest(void)
cerr << _("Size of a BinHeap header : ") << sizeof(BinHeap) << endl;
cerr << _("Size of a BinHeap cell : ") << sizeof(binheap_t) << endl;
-/*
DoCombTest(0);
DoCombTest(10);
DoCombTest(70);
-*/
-// DoCombTest(1000);
-// DoCombTest(10000);
+ DoCombTest(1000);
+ DoCombTest(10000);
#ifdef BT
DoCombTest(100000);
#ifdef VBT
@@ -92,8 +88,7 @@ void FullTest(void)
cerr << _("Creating a priority list and adding keys:\n");
T = newlist();
for (i = 0; i < 30; i++) {
- T->Dump(cerr);
- fprintf(stderr, "%i \n", N[i]);
+ fprintf(stderr, "%i ", N[i]);
T->Insert(N[i], NULL);
}