]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wrong test (patch 1532411)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Aug 2006 01:05:19 +0000 (01:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Aug 2006 01:05:19 +0000 (01:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filename/filenametest.cpp

index 11c98c33b326f0bd135a2816fcfa9f93ec0856be..969b34d8d38d8fa0fb9a6cc28337e6ac9fc0d65f 100644 (file)
@@ -144,9 +144,12 @@ void FileNameTestCase::TestConstruction()
 
 void FileNameTestCase::TestComparison()
 {
-    wxFileName fn1(wxT("/tmp"));
-    wxFileName fn2(wxT("/tmp/"));
-    assert(fn1.SameAs(fn2));
+    wxFileName fn1(wxT("/tmp/file1"));
+    wxFileName fn2(wxT("/tmp/dir2/../file2"));
+    fn1.Normalize();
+    fn2.Normalize();
+    CPPUNIT_ASSERT(fn1.GetPath() == fn2.GetPath());
+
 }
 
 void FileNameTestCase::TestSplit()