Pass arguments of the same type to CPPUNIT_ASSERT_EQUAL
This is to avoid potential implicit conversions.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user