]> git.saurik.com Git - wxWidgets.git/commitdiff
test for the bug in HasEntry() which could create non-existing group as a side effect
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Jul 2006 22:48:00 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Jul 2006 22:48:00 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/fileconf/fileconftest.cpp

index 9b75d89bc9034884f2129c2f6f5fc4ca2ed8740c..82a983500b2c358074df54e4633c84d779f76152 100644 (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()