From 8d94d4d9d334d1dd41cc1571dbdedcbf88d58ab7 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 29 Jul 2017 20:24:05 +0200 Subject: [PATCH] Pass arguments of the same type to CPPUNIT_ASSERT_EQUAL This is to avoid potential implicit conversions. --- tests/strings/hexconv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/strings/hexconv.cpp b/tests/strings/hexconv.cpp index f9b8a24200..00e8c1404d 100644 --- a/tests/strings/hexconv.cpp +++ b/tests/strings/hexconv.cpp @@ -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 ); } }