]> granicus.if.org Git - icinga2/commitdiff
Fix unit tests.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 Apr 2014 09:40:17 +0000 (11:40 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 Apr 2014 09:40:17 +0000 (11:40 +0200)
Refs #5986

test/base-dictionary.cpp

index 2d07c0f1ada2dafa1ec18f975f8931152383d05f..81d754612e521fd34989b7b2acca6dd32e6e835a 100644 (file)
@@ -116,6 +116,11 @@ BOOST_AUTO_TEST_CASE(remove)
 
        dictionary->Set("test1", Empty);
 
+       BOOST_CHECK(dictionary->Contains("test1"));
+       BOOST_CHECK(dictionary->GetLength() == 2);
+
+       dictionary->Remove("test1");
+
        BOOST_CHECK(!dictionary->Contains("test1"));
        BOOST_CHECK(dictionary->GetLength() == 1);