Declares a custom Test class for unit testing.
[詳解]
#include <iostream>
#include <stdexcept>
#include <string>
[ソースコード]
|
| class | Test |
| | A custom class for performing unit tests and reporting results. [詳解]
|
| |
|
| #define | GREEN "\033[0;32m"; |
| |
| #define | RED "\033[0;31m"; |
| |
| #define | NC "\033[0m"; |
| |
| #define | MSG_ASS_FAILED " Assertion \033[0;31mFAILED\033[0m: " |
| |
| #define | MSG_FAILED "\033[0;31mFAILED\033[0m" |
| |
| #define | MSG_PASSED "\033[0;32mPASSED\033[0m" |
| |
Declares a custom Test class for unit testing.
Test.hpp に定義があります。
◆ GREEN
| #define GREEN "\033[0;32m"; |
◆ MSG_ASS_FAILED
| #define MSG_ASS_FAILED " Assertion \033[0;31mFAILED\033[0m: " |
◆ MSG_FAILED
| #define MSG_FAILED "\033[0;31mFAILED\033[0m" |
◆ MSG_PASSED
| #define MSG_PASSED "\033[0;32mPASSED\033[0m" |
◆ NC
◆ RED
| #define RED "\033[0;31m"; |