Add a unit test for Convert::ToLong(double) - fails

This commit is contained in:
Michael Friedrich 2019-01-30 14:23:57 +01:00
parent 530f890cab
commit b1362aeb9b
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ BOOST_AUTO_TEST_CASE(tolong)
BOOST_CHECK_THROW(Convert::ToLong("7a"), boost::exception); BOOST_CHECK_THROW(Convert::ToLong("7a"), boost::exception);
BOOST_CHECK(Convert::ToLong(Value(-7)) == -7); BOOST_CHECK(Convert::ToLong(Value(-7)) == -7);
BOOST_CHECK(Convert::ToLong(3.141386593) == 3);
} }
BOOST_AUTO_TEST_CASE(todouble) BOOST_AUTO_TEST_CASE(todouble)