test for the bug in HasEntry() which could create non-existing group as a side effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2cf3a6d7be
commit
b0db68b22a
@ -236,6 +236,8 @@ void FileConfigTestCase::HasEntry()
|
||||
CPPUNIT_ASSERT( !fc.HasEntry(_T("")) );
|
||||
CPPUNIT_ASSERT( !fc.HasEntry(_T("root/group1")) );
|
||||
CPPUNIT_ASSERT( !fc.HasEntry(_T("subgroup/subentry")) );
|
||||
CPPUNIT_ASSERT( !fc.HasEntry(_T("/root/no_such_group/entry")) );
|
||||
CPPUNIT_ASSERT( !fc.HasGroup(_T("/root/no_such_group")) );
|
||||
}
|
||||
|
||||
void FileConfigTestCase::HasGroup()
|
||||
|
Loading…
Reference in New Issue
Block a user