@@ -63,27 +63,6 @@ bool WsjcppUnitTestBase::runTest() {
63
63
64
64
// ---------------------------------------------------------------------
65
65
66
- bool WsjcppUnitTestBase::compareS (const std::string &sMark ,
67
- const std::string &sValue , const std::string &sExpected ) {
68
- if (sValue != sExpected ) {
69
- fail (" {" + sMark + " } Expected '" + sExpected + " ', but got '" + sValue + " '" );
70
- return false ;
71
- }
72
- return true ;
73
- }
74
-
75
- // ---------------------------------------------------------------------
76
-
77
- bool WsjcppUnitTestBase::compareN (const std::string &sMark , int nValue, int nExpected) {
78
- if (nValue != nExpected) {
79
- fail (" {" + sMark + " } Expected '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
80
- return false ;
81
- }
82
- return true ;
83
- }
84
-
85
- // ---------------------------------------------------------------------
86
-
87
66
bool WsjcppUnitTestBase::compareD (const std::string &sMark , double nValue, double nExpected) {
88
67
if (abs (nValue - nExpected) > std::numeric_limits<double >::epsilon ()) {
89
68
fail (" {" + sMark + " } Expected '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
@@ -94,16 +73,6 @@ bool WsjcppUnitTestBase::compareD(const std::string &sMark, double nValue, doubl
94
73
95
74
// ---------------------------------------------------------------------
96
75
97
- bool WsjcppUnitTestBase::compareB (const std::string &sMark , bool bValue, bool bExpected) {
98
- if (bValue != bExpected) {
99
- fail (" {" + sMark + " } Expected '" + (bExpected ? " true" : " false" ) + " ', but got '" + (bValue ? " true" : " false" ) + " '" );
100
- return false ;
101
- }
102
- return true ;
103
- }
104
-
105
- // ---------------------------------------------------------------------
106
-
107
76
std::vector<WsjcppUnitTestBase*> *g_pWsjcppUnitTests = nullptr ;
108
77
109
78
void WsjcppUnitTests::initGlobalVariables () {
0 commit comments