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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user