1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-07 20:25:08 +02:00

Merge pull request from Icinga/feature/make-base-value-format-test-easier-to-understand

Make base_value/format test easier to understand
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-08-03 11:37:09 +02:00 committed by GitHub
commit 02db80d6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,7 +46,8 @@ BOOST_AUTO_TEST_CASE(format)
std::istringstream ibuf("3");
ibuf >> v;
BOOST_CHECK(v != 3);
BOOST_CHECK_MESSAGE(v.IsString(), "type of v should be String (is " << v.GetTypeName() << ")");
BOOST_CHECK_MESSAGE(v == "3", "v should be '3' (is '" << v << "')");
}
BOOST_AUTO_TEST_SUITE_END()