MCPcopy Create free account
hub / github.com/Icinga/icinga2 / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/base-convert.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11BOOST_AUTO_TEST_SUITE(base_convert)
12
13BOOST_AUTO_TEST_CASE(tolong)
14{
15 BOOST_CHECK_THROW(Convert::ToLong(" 7"), boost::exception);
16 BOOST_CHECK(Convert::ToLong("-7") == -7);
17 BOOST_CHECK_THROW(Convert::ToLong("7a"), boost::exception);
18
19 BOOST_CHECK(Convert::ToLong(Value(-7)) == -7);
20
21 BOOST_CHECK(Convert::ToLong(3.141386593) == 3);
22}
23
24BOOST_AUTO_TEST_CASE(todouble)
25{

Callers

nothing calls this directly

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected