]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filename/filenametest.cpp
fixed wrong test (patch 1532411)
[wxWidgets.git] / 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()