diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-06-27 21:05:16 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-06-27 21:05:16 +0200 |
commit | 4e51b1e1f8773c7bb386efaf0ccd85fc1ba0904b (patch) | |
tree | 98ef95a478dbcf9c0441762462fc14fd80c722fa /test/correctness/tester.hpp | |
parent | e60b10529a0548597d2398fb1e55dcbfa6c104e6 (diff) |
Moved and inlined some static member variables and disabled spurious clang warnings
Diffstat (limited to 'test/correctness/tester.hpp')
-rw-r--r-- | test/correctness/tester.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/correctness/tester.hpp b/test/correctness/tester.hpp index 8cfa702f..e544f776 100644 --- a/test/correctness/tester.hpp +++ b/test/correctness/tester.hpp @@ -146,6 +146,28 @@ class Tester { std::vector<std::string> options_; }; +// Maximum number of test results printed on a single line +template <typename T, typename U> const size_t Tester<T,U>::kResultsPerLine = size_t{64}; + +// Error percentage is not applicable: error was caused by an incorrect status +template <typename T, typename U> const float Tester<T,U>::kStatusError = -1.0f; + +// Constants holding start and end strings for terminal-output in colour +template <typename T, typename U> const std::string Tester<T,U>::kPrintError = "\x1b[31m"; +template <typename T, typename U> const std::string Tester<T,U>::kPrintSuccess = "\x1b[32m"; +template <typename T, typename U> const std::string Tester<T,U>::kPrintWarning = "\x1b[35m"; +template <typename T, typename U> const std::string Tester<T,U>::kPrintMessage = "\x1b[1m"; +template <typename T, typename U> const std::string Tester<T,U>::kPrintEnd = "\x1b[0m"; + +// Sets the output error coding +template <typename T, typename U> const std::string Tester<T,U>::kSuccessData = "\x1b[32m:\x1b[0m"; // success +template <typename T, typename U> const std::string Tester<T,U>::kSuccessStatus = "\x1b[32m.\x1b[0m"; // success +template <typename T, typename U> const std::string Tester<T,U>::kErrorData = "\x1b[31mX\x1b[0m"; // error +template <typename T, typename U> const std::string Tester<T,U>::kErrorStatus = "\x1b[31m/\x1b[0m"; // error +template <typename T, typename U> const std::string Tester<T,U>::kSkippedCompilation = "\x1b[35m\\\x1b[0m"; // warning +template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedPrecision = "\x1b[35mo\x1b[0m"; // warning +template <typename T, typename U> const std::string Tester<T,U>::kUnsupportedReference = "\x1b[35m-\x1b[0m"; // warning + // ================================================================================================= // Below are the non-member functions (separated because of otherwise required partial class // template specialization) |