lab_heaps
Precarious Priority Queues
testheap.cpp File Reference

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

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?