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:
Vadim Zeitlin 2006-07-14 22:48:00 +00:00
parent 2cf3a6d7be
commit b0db68b22a

View File

@ -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()