From 33366127e8595c2d1e73d5884a27532f54141e3d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Apr 2006 15:02:56 +0000 Subject: [PATCH] added filename comparison test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/filename/filenametest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/filename/filenametest.cpp b/tests/filename/filenametest.cpp index 27ad3ae870..11c98c33b3 100644 --- a/tests/filename/filenametest.cpp +++ b/tests/filename/filenametest.cpp @@ -86,6 +86,7 @@ public: private: CPPUNIT_TEST_SUITE( FileNameTestCase ); CPPUNIT_TEST( TestConstruction ); + CPPUNIT_TEST( TestComparison ); CPPUNIT_TEST( TestSplit ); CPPUNIT_TEST( TestSetPath ); CPPUNIT_TEST( TestStrip ); @@ -95,6 +96,7 @@ private: CPPUNIT_TEST_SUITE_END(); void TestConstruction(); + void TestComparison(); void TestSplit(); void TestSetPath(); void TestStrip(); @@ -140,6 +142,13 @@ void FileNameTestCase::TestConstruction() } } +void FileNameTestCase::TestComparison() +{ + wxFileName fn1(wxT("/tmp")); + wxFileName fn2(wxT("/tmp/")); + assert(fn1.SameAs(fn2)); +} + void FileNameTestCase::TestSplit() { for ( size_t n = 0; n < WXSIZEOF(filenames); n++ )