Pass arguments of the same type to CPPUNIT_ASSERT_EQUAL

This is to avoid potential implicit conversions.
This commit is contained in:
Artur Wieczorek
2017-07-30 09:56:43 +02:00
parent 497f275e1b
commit 8d94d4d9d3
+1 -1
View File
@@ -85,7 +85,7 @@ void HexConvTestCase::DecToHex2()
CPPUNIT_ASSERT_EQUAL( hexStr[0], (wxChar)szHexStrRef[0] );
CPPUNIT_ASSERT_EQUAL( hexStr[1], (wxChar)szHexStrRef[1] );
CPPUNIT_ASSERT_EQUAL( hexStr[2], wxS('\0') );
CPPUNIT_ASSERT_EQUAL( hexStr[2], (wxChar)'\0' );
CPPUNIT_ASSERT_EQUAL( hexStr[3], c3 );
}
}