fix wxConfig::DeleteGroup() for arguments with trailing slash (replaces patch 1624589)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-07 16:36:54 +00:00
parent bde1da6d3f
commit 35c4b4da0a
5 changed files with 13 additions and 4 deletions

View File

@@ -309,7 +309,8 @@ void FileConfigTestCase::DeleteGroup()
_T("[root/group2]\n"),
fc );
CPPUNIT_ASSERT( fc.DeleteGroup(_T("root/group2")) );
// notice trailing slash: it should be ignored
CPPUNIT_ASSERT( fc.DeleteGroup(_T("root/group2/")) );
wxVERIFY_FILECONFIG( _T("[root]\n")
_T("entry=value\n"),
fc );