make visible why the test fails
@@ -121,9 +121,9 @@ void PriorityQueue_Test()
}
if(feedback.evicted)
{
+ printf("evicted item %f %d\n", feedback.evictedItem.priority, (int)feedback.evictedItem.address);
assert(evictions>0 || feedback.evictedItem.priority == 1.0/((double) (n_items*2)), "the evicted item has to be the lowest priority one");
assert(queue.itemsAmount < n_items, "eviction should only happen when full!");
- printf("evicted item %f %d\n", feedback.evictedItem.priority, (int)feedback.evictedItem.address);
evictions++;
}
}
