X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33366127e8595c2d1e73d5884a27532f54141e3d..67a083dd38d1ad1df8c6a25a58bb2f0ec4f3a936:/tests/filename/filenametest.cpp diff --git a/tests/filename/filenametest.cpp b/tests/filename/filenametest.cpp index 11c98c33b3..969b34d8d3 100644 --- a/tests/filename/filenametest.cpp +++ b/tests/filename/filenametest.cpp @@ -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()