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:
parent
c1464d9d10
commit
33366127e8
@ -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++ )
|
||||
|
Loading…
Reference in New Issue
Block a user