Skip to content

Commit

Permalink
Merge pull request #8815 from Icinga/feature/make-base-value-format-t…
Browse files Browse the repository at this point in the history
…est-easier-to-understand

Make base_value/format test easier to understand
  • Loading branch information
Al2Klimov authored Aug 3, 2021
2 parents 14f961d + 7012774 commit 02db80d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/base-value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 02db80d

Please sign in to comment.