From b1362aeb9b6822a88ce4e3a187974f5ef20a4bad Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 30 Jan 2019 14:23:57 +0100 Subject: [PATCH] Add a unit test for Convert::ToLong(double) - fails --- test/base-convert.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/base-convert.cpp b/test/base-convert.cpp index 26919b61f..48499b1cb 100644 --- a/test/base-convert.cpp +++ b/test/base-convert.cpp @@ -33,6 +33,8 @@ BOOST_AUTO_TEST_CASE(tolong) BOOST_CHECK_THROW(Convert::ToLong("7a"), boost::exception); BOOST_CHECK(Convert::ToLong(Value(-7)) == -7); + + BOOST_CHECK(Convert::ToLong(3.141386593) == 3); } BOOST_AUTO_TEST_CASE(todouble)