From: Vadim Zeitlin Date: Fri, 14 Jul 2006 22:48:00 +0000 (+0000) Subject: test for the bug in HasEntry() which could create non-existing group as a side effect X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b0db68b22ab3714a37e1939981f3110fd9f11ac0?hp=2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5 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 --- diff --git a/tests/fileconf/fileconftest.cpp b/tests/fileconf/fileconftest.cpp index 9b75d89bc9..82a983500b 100644 --- a/tests/fileconf/fileconftest.cpp +++ b/tests/fileconf/fileconftest.cpp @@ -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()