From 5defe5065789beeb903bcf65de05dd4468079ea7 Mon Sep 17 00:00:00 2001 From: cah Date: Sun, 23 Jun 2024 18:03:31 +0200 Subject: Fix some warnings when building tests. --- test/tests.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/tests.cc b/test/tests.cc index 633aaa2..4b8efc7 100644 --- a/test/tests.cc +++ b/test/tests.cc @@ -61,19 +61,19 @@ BOOST_AUTO_TEST_CASE (test) BOOST_CHECK_EQUAL (document.optional_bool_child("E").get(), true); BOOST_CHECK_THROW (document.optional_bool_child("F"), cxml::Error); - BOOST_CHECK_EQUAL (document.node_children("F").size(), 2); + BOOST_CHECK_EQUAL (document.node_children("F").size(), 2U); BOOST_CHECK_EQUAL (document.node_children("F").front()->content(), "1"); BOOST_CHECK_EQUAL (document.node_children("F").back()->content(), "2"); BOOST_CHECK (!document.optional_bool_child("G")); vector> h = document.node_children ("H"); - BOOST_CHECK_EQUAL (h.size(), 1); - BOOST_CHECK_EQUAL (h.front()->node_children("I").size(), 2); + BOOST_CHECK_EQUAL (h.size(), 1U); + BOOST_CHECK_EQUAL (h.front()->node_children("I").size(), 2U); BOOST_CHECK_EQUAL (h.front()->node_children("I").front()->content(), "testing"); BOOST_CHECK_EQUAL (h.front()->node_children("I").back()->content(), "more testing"); - BOOST_CHECK_EQUAL (document.node_children("J").size(), 1); - BOOST_CHECK_EQUAL (document.node_children("J").front()->node_children("K").size(), 1); + BOOST_CHECK_EQUAL (document.node_children("J").size(), 1U); + BOOST_CHECK_EQUAL (document.node_children("J").front()->node_children("K").size(), 1U); BOOST_CHECK_EQUAL (document.node_children("J").front()->node_children("K").front()->content(), "jim"); } -- cgit v1.2.3