From e8e4268a28fb8930f44dd35c570a76e0da3a2369 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 23 Nov 2014 09:58:33 +0100 Subject: [PATCH] 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 7aaecf836..0eaa35db1 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");