[icinga-checkins] icinga.org: icinga2/master: Improve test coverage for the Convert class

git at icinga.org git at icinga.org
Sun Nov 23 10:00:03 CET 2014


Module: icinga2
Branch: master
Commit: e8e4268a28fb8930f44dd35c570a76e0da3a2369
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=e8e4268a28fb8930f44dd35c570a76e0da3a2369

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sun Nov 23 09:58:33 2014 +0100

Improve test coverage for the Convert class

refs #7805

---

 test/base-convert.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/base-convert.cpp b/test/base-convert.cpp
index 7aaecf8..0eaa35d 100644
--- a/test/base-convert.cpp
+++ b/test/base-convert.cpp
@@ -49,6 +49,9 @@ BOOST_AUTO_TEST_CASE(tostring)
 	BOOST_CHECK(Convert::ToString(7.5) == "7.5");
 	BOOST_CHECK(Convert::ToString("hello") == "hello");
 
+	String str = "hello";
+	BOOST_CHECK(Convert::ToString(str) == "hello");
+
 	BOOST_CHECK(Convert::ToString(Value(7)) == "7");
 	BOOST_CHECK(Convert::ToString(Value(7.5)) == "7.5");
 	BOOST_CHECK(Convert::ToString(Value("hello")) == "hello");



More information about the icinga-checkins mailing list