]> git.saurik.com Git - wxWidgets.git/commitdiff
fix comparison in Normalize() test
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Nov 2008 11:52:04 +0000 (11:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Nov 2008 11:52:04 +0000 (11:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filename/filenametest.cpp

index 9060ce280518070977238eb6887449c34ecf0e47..1dea6f12eb46afb94a856be89204322e38475650 100644 (file)
@@ -357,9 +357,9 @@ void FileNameTestCase::TestNormalize()
         wxFileName fn(fnt.original, fnt.fmt);
 
         // be sure this normalization does not fail
-        CPPUNIT_ASSERT_MESSAGE
+        WX_ASSERT_MESSAGE
         (
-            (const char *)wxString::Format(_T("Normalize(%s) failed"), fnt.original).mb_str(),
+            ("#%d: Normalize(%s) failed", (int)i, fnt.original),
             fn.Normalize(fnt.flags, cwd, fnt.fmt)
         );
 
@@ -367,7 +367,11 @@ void FileNameTestCase::TestNormalize()
         wxString expected(tests[i].expected);
         expected.Replace(_T("HOME/"), home);
         expected.Replace(_T("CWD/"), cwd);
-        CPPUNIT_ASSERT_EQUAL( fnt.expected, fn.GetFullPath(fnt.fmt) );
+        WX_ASSERT_EQUAL_MESSAGE
+        (
+            ("array element #%d", (int)i),
+            expected, fn.GetFullPath(fnt.fmt)
+        );
     }
 }