#include <tester.h>

Collaboration diagram for Tester:

List of all members.

Public Member Functions

 Tester ()
void runTest (const CString &startdir, ostream &out)
bool compareToCorrectOutput (const CString &dir, const CString &output)

Private Member Functions

CStringextractOutputNumbers (const CString &s, list< OutputNumber > **floats)

Private Attributes

Shellshell

Constructor & Destructor Documentation

Tester::Tester (  ) 

constructor creates a shell object

References createShell(), and shell.

Here is the call graph for this function:


Member Function Documentation

bool Tester::compareToCorrectOutput ( const CString dir,
const CString output 
)

Check whether output is equal to the contents of the correct-output file modulo differences in DOS/UNIX line ends (sigh...) and modulo differences in float representation and rounding

References CORRECT_OUTPUT_NAME, extractOutputNumbers(), PATHSEPARATOR, Shell::readFile(), CString::replace(), and shell.

Referenced by runTest().

Here is the call graph for this function:

CString * Tester::extractOutputNumbers ( const CString s,
list< OutputNumber > **  numbers 
) [private]

Tester::extractOutputNumbers remove all numbers and wildcard symbols from output string and collect them in a separate list.

References NUMBER_OR_WILDCARD_REGEX, and ON_WILDCARD.

Referenced by compareToCorrectOutput().

void Tester::runTest ( const CString startdir,
ostream &  out 
)

Member Data Documentation


The documentation for this class was generated from the following files: