Merge pull request #8815 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
1 changed files with 2 additions and 1 deletions

View File

@ -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()