mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 04:34:43 +02:00
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(Convert::ToLong(Value(-7)) == -7);
|
||||
|
||||
BOOST_CHECK(Convert::ToLong(3.141386593) == 3);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(todouble)
|
||||
|
Loading…
x
Reference in New Issue
Block a user