added filename comparison test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,6 +86,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
CPPUNIT_TEST_SUITE( FileNameTestCase );
|
CPPUNIT_TEST_SUITE( FileNameTestCase );
|
||||||
CPPUNIT_TEST( TestConstruction );
|
CPPUNIT_TEST( TestConstruction );
|
||||||
|
CPPUNIT_TEST( TestComparison );
|
||||||
CPPUNIT_TEST( TestSplit );
|
CPPUNIT_TEST( TestSplit );
|
||||||
CPPUNIT_TEST( TestSetPath );
|
CPPUNIT_TEST( TestSetPath );
|
||||||
CPPUNIT_TEST( TestStrip );
|
CPPUNIT_TEST( TestStrip );
|
||||||
@@ -95,6 +96,7 @@ private:
|
|||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
void TestConstruction();
|
void TestConstruction();
|
||||||
|
void TestComparison();
|
||||||
void TestSplit();
|
void TestSplit();
|
||||||
void TestSetPath();
|
void TestSetPath();
|
||||||
void TestStrip();
|
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()
|
void FileNameTestCase::TestSplit()
|
||||||
{
|
{
|
||||||
for ( size_t n = 0; n < WXSIZEOF(filenames); n++ )
|
for ( size_t n = 0; n < WXSIZEOF(filenames); n++ )
|
||||||
|
Reference in New Issue
Block a user