lab_heaps
Precarious Priority Queues
testheap.cpp File Reference

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...
 

Detailed Description

Heap Testing Code.

Author
Jack Toole
Date
Fall 2011
Author
Chase Geigle
Date
Fall 2012

Function Documentation

◆ testCompileOnly()

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?