X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb91ff63bcb8012384a7639f711c0bbdd3173be9..968b44d37b9fcdc5232fb68312a65e4fc6b5f4ab:/tests/file/dir.cpp diff --git a/tests/file/dir.cpp b/tests/file/dir.cpp index c5151d243e..81d66ad53e 100644 --- a/tests/file/dir.cpp +++ b/tests/file/dir.cpp @@ -235,9 +235,13 @@ void DirTestCase::GetName() CPPUNIT_ASSERT( d.Open(".") ); CPPUNIT_ASSERT( d.GetName().Last() != wxFILE_SEP_PATH ); + CPPUNIT_ASSERT( d.GetNameWithSep().Last() == wxFILE_SEP_PATH ); + CPPUNIT_ASSERT_EQUAL( d.GetName() + wxFILE_SEP_PATH, + d.GetNameWithSep() ); #ifdef __UNIX__ CPPUNIT_ASSERT( d.Open("/") ); CPPUNIT_ASSERT_EQUAL( "/", d.GetName() ); + CPPUNIT_ASSERT_EQUAL( "/", d.GetNameWithSep() ); #endif }