#include "header.h"
#include "../external/debug/simple_test.hpp"
#include <ctime>
#include <map>
Go to the source code of this file.
Namespaces | |
namespace | moose |
Defines | |
#define | TEST_BEGIN cout << endl << "Test(" << totalTests << "): " << SIMPLE_CURRENT_FUNCTION; |
This macro prints the output of a test function onto console. It also keep track of index of the current test. The index of test is automatically computed by increamenting the counter. | |
#define | TEST_END |
#define | MISSING_BRACKET_AT_END -1 |
#define | EMPTY_PATH -2 |
#define | SPACES_AT_THE_BEGINING -3 |
#define | SPACES_AT_THE_END -4 |
#define | SPACES_IN_BETWEEN -5 |
#define | BAD_CHARACTER_IN_PATH -6 |
Functions | |
string | moose::fixPath (string path) |
Fix a path. For testing purpose. | |
int | moose::checkPath (const string &path) |
Checks if given path is correct. If not, return false and error-code as well. | |
string | moose::joinPath (string pathA, string pathB) |
Append pathB to pathA and return the result. | |
Variables | |
stringstream | errorSS |
Global stringstream for message printing. | |
unsigned int | totalTests |
Keep tracks of how many tests have been executed in moose. |
#define BAD_CHARACTER_IN_PATH -6 |
#define EMPTY_PATH -2 |
#define MISSING_BRACKET_AT_END -1 |
#define SPACES_AT_THE_BEGINING -3 |
#define SPACES_AT_THE_END -4 |
#define SPACES_IN_BETWEEN -5 |
#define TEST_BEGIN cout << endl << "Test(" << totalTests << "): " << SIMPLE_CURRENT_FUNCTION; |
This macro prints the output of a test function onto console. It also keep track of index of the current test. The index of test is automatically computed by increamenting the counter.
#define TEST_END |
totalTests++; \ cout << std::right << setw(20) << "test of " << SIMPLE_CURRENT_FUNCTION << " finished.";
stringstream errorSS |
Global stringstream for message printing.
Referenced by HSolveUtils::gates().
unsigned int totalTests |
Keep tracks of how many tests have been executed in moose.