|
lab_heaps
Precarious Priority Queues
|
Heap Testing Code. More...
Functions | |
| void | testConstructor (int count) |
| void | testPop (int count) |
| void | testPush (int count) |
| void | testUpdateElem (int count) |
| void | printHeader (const string &headline) |
| void | printAfter (int value, std::string operation="remove") |
| int | main (int argc, const char **argv) |
| vector< int > | setUpVector (int seed, int count) |
| void | testCompileOnly () |
| This test is NEVER RUN, but ONLY COMPILED. More... | |
Heap Testing Code.
| void testCompileOnly | ( | ) |
This test is NEVER RUN, but ONLY COMPILED.
Its compilation checks that you aren't using any values, i.e. array[i], as an index into the array (since a string can't be used as an index into an array. If you do, this code will prevent the heap code from compiling. Neat, huh?