@@ -17,7 +17,7 @@ std::string UnitTestBase::name() {
1717void UnitTestBase::compareS (bool &bTestSuccess, const std::string &sPoint ,
1818 const std::string &sValue , const std::string &sExpected ) {
1919 if (sValue != sExpected ) {
20- WSJCppLog::err (TAG, sPoint + " , expeceted '" + sExpected + " ', but got '" + sValue + " '" );
20+ WSJCppLog::err (TAG, " { " + sPoint + " } Expected '" + sExpected + " ', but got '" + sValue + " '" );
2121 bTestSuccess = false ;
2222 }
2323}
@@ -26,7 +26,7 @@ void UnitTestBase::compareS(bool &bTestSuccess, const std::string &sPoint,
2626
2727bool UnitTestBase::compareN (bool &bTestSuccess, const std::string &sPoint , int nValue, int nExpected) {
2828 if (nValue != nExpected) {
29- WSJCppLog::err (TAG, " {" + sPoint + " } Expeceted '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
29+ WSJCppLog::err (TAG, " {" + sPoint + " } Expected '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
3030 bTestSuccess = false ;
3131 return false ;
3232 }
@@ -37,7 +37,7 @@ bool UnitTestBase::compareN(bool &bTestSuccess, const std::string &sPoint, int n
3737
3838bool UnitTestBase::compareD (bool &bTestSuccess, const std::string &sPoint , double nValue, double nExpected) {
3939 if (nValue != nExpected) {
40- WSJCppLog::err (TAG, " {" + sPoint + " } Expeceted '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
40+ WSJCppLog::err (TAG, " {" + sPoint + " } Expected '" + std::to_string (nExpected) + " ', but got '" + std::to_string (nValue) + " '" );
4141 bTestSuccess = false ;
4242 return false ;
4343 }
@@ -48,7 +48,7 @@ bool UnitTestBase::compareD(bool &bTestSuccess, const std::string &sPoint, doubl
4848
4949void UnitTestBase::compareB (bool &bTestSuccess, const std::string &sPoint , bool bValue, bool bExpected) {
5050 if (bValue != bExpected) {
51- WSJCppLog::err (TAG, sPoint + " , expeceted '" + (bExpected ? " true" : " false" ) + " ', but got '" + (bValue ? " true" : " false" ) + " '" );
51+ WSJCppLog::err (TAG, " { " + sPoint + " } Expected '" + (bExpected ? " true" : " false" ) + " ', but got '" + (bValue ? " true" : " false" ) + " '" );
5252 bTestSuccess = false ;
5353 }
5454}
0 commit comments