@@ -63,27 +63,6 @@ bool WsjcppUnitTestBase::runTest() {
6363
6464// ---------------------------------------------------------------------
6565
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-
8766bool WsjcppUnitTestBase::compareD (const std::string &sMark , double nValue, double nExpected) {
8867 if (abs (nValue - nExpected) > std::numeric_limits<double >::epsilon ()) {
8968 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
9473
9574// ---------------------------------------------------------------------
9675
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-
10776std::vector<WsjcppUnitTestBase*> *g_pWsjcppUnitTests = nullptr ;
10877
10978void WsjcppUnitTests::initGlobalVariables () {
0 commit comments