|
lab_heaps
Precarious Priority Queues
|
Heap Testing Code. More...
#include <iostream>#include <fstream>#include <ctype.h>#include <time.h>#include <utility>#include "coloredout.h"#include "heap.h"#include "random.h"
Include dependency graph for testheap.cpp:Functions | |
| 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?