From b0db68b22ab3714a37e1939981f3110fd9f11ac0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Jul 2006 22:48:00 +0000 Subject: [PATCH] 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 --- tests/fileconf/fileconftest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.45.2