CoxIter  1.3
CoxIter - Computing invariants of hyperbolic Coxeter groups
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Tests Class Reference

Class to perform the tests. More...

#include <tests.h>

Public Member Functions

 Tests ()
 
bool readGraphsFile (string inputFilename)
 Read the graph which contains the tests. More...
 
bool runTests ()
 Perform the tests. More...
 
string get_error () const
 
vector< Testget_tests () const
 
unsigned int get_testsCount () const
 

Private Member Functions

bool runTests_computations (const unsigned int &testIndex, CoxIter *ci)
 
void runTests_arithmeticity (const unsigned int &testIndex, CoxIter *ci)
 
void runTests_cocompactness_cofiniteness (const unsigned int &testIndex, CoxIter *ci)
 
void runTests_growth (const unsigned int &testIndex, CoxIter *ci)
 
void runTests_signature (const unsigned int &testIndex, CoxIter *ci, const unsigned int &dim)
 
void runTests_euler (const unsigned int &testIndex, CoxIter *ci)
 
void runTests_fVector (const unsigned int &testIndex, CoxIter *ci)
 
void runTestsError (const unsigned int &testIndex, const string &test, const string &expected, const string &computed)
 
void runTests_init ()
 
void runTests_displayInfo ()
 
string strIntToString (const int &i)
 [*, 0, 1] => "?", "no", "yes" More...
 

Private Attributes

string error
 Eventually, error code. More...
 
string inputFilename
 File which contains the tests. More...
 
vector< Testtests
 Tests toi be performed. More...
 
ofstream of
 Output to file. More...
 
map< string, array< unsigned int, 2 > > testsSucceded
 For each test, number of success, failure. More...
 
map< string, string > testDescription
 For each test, description. More...
 
unsigned int testsUnknownErrors
 Number of other errors. More...
 

Detailed Description

Class to perform the tests.

Constructor & Destructor Documentation

◆ Tests()

Tests::Tests ( )

Member Function Documentation

◆ get_error()

string Tests::get_error ( ) const

◆ get_tests()

vector<Test> Tests::get_tests ( ) const

◆ get_testsCount()

unsigned int Tests::get_testsCount ( ) const

◆ readGraphsFile()

Tests::readGraphsFile ( string  inputFilename)

Read the graph which contains the tests.

Parameters
inputFilename(string)File to read
Returns
True if success

◆ runTests()

Tests::runTests ( )

Perform the tests.

◆ runTests_arithmeticity()

void Tests::runTests_arithmeticity ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_cocompactness_cofiniteness()

void Tests::runTests_cocompactness_cofiniteness ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_computations()

bool Tests::runTests_computations ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_displayInfo()

void Tests::runTests_displayInfo ( )
private

◆ runTests_euler()

void Tests::runTests_euler ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_fVector()

void Tests::runTests_fVector ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_growth()

void Tests::runTests_growth ( const unsigned int &  testIndex,
CoxIter ci 
)
private

◆ runTests_init()

void Tests::runTests_init ( )
private

◆ runTests_signature()

void Tests::runTests_signature ( const unsigned int &  testIndex,
CoxIter ci,
const unsigned int &  dim 
)
private

◆ runTestsError()

void Tests::runTestsError ( const unsigned int &  testIndex,
const string &  test,
const string &  expected,
const string &  computed 
)
private

◆ strIntToString()

string Tests::strIntToString ( const int &  i)
private

[*, 0, 1] => "?", "no", "yes"

Member Data Documentation

◆ error

string Tests::error
private

Eventually, error code.

◆ inputFilename

string Tests::inputFilename
private

File which contains the tests.

◆ of

ofstream Tests::of
private

Output to file.

◆ testDescription

map<string, string> Tests::testDescription
private

For each test, description.

◆ tests

vector<Test> Tests::tests
private

Tests toi be performed.

◆ testsSucceded

map<string, array<unsigned int, 2> > Tests::testsSucceded
private

For each test, number of success, failure.

◆ testsUnknownErrors

unsigned int Tests::testsUnknownErrors
private

Number of other errors.


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