From: Gunnar Beutner Date: Wed, 9 Apr 2014 09:40:17 +0000 (+0200) Subject: Fix unit tests. X-Git-Tag: v0.0.10~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb5e7561eda81cd576667f2e565a58564723e155;p=icinga2 Fix unit tests. Refs #5986 --- diff --git a/test/base-dictionary.cpp b/test/base-dictionary.cpp index 2d07c0f1a..81d754612 100644 --- a/test/base-dictionary.cpp +++ b/test/base-dictionary.cpp @@ -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);