mirror of https://github.com/Icinga/icinga2.git
Add a unit test for Convert::ToLong(double) - fails
This commit is contained in:
parent
530f890cab
commit
b1362aeb9b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue