summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-26 00:38:43 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-26 00:38:43 +0100
commit3b6ddf4b140befd1286af26c34800a50b3ba3f56 (patch)
tree93073a6bfc847c208c92988a3f3731fffc2bb587 /test
parente486e70da8c3c65294e27c18ad9cb0e4a5fe8aaf (diff)
Use xpath for node_children.
Diffstat (limited to 'test')
-rw-r--r--test/tests.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests.cc b/test/tests.cc
index 4bf0ae7..ed8d2f4 100644
--- a/test/tests.cc
+++ b/test/tests.cc
@@ -62,4 +62,8 @@ 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 (!document.optional_bool_child("G"));
+
+ BOOST_CHECK_EQUAL (document.node_children("F").size(), 2);
+ BOOST_CHECK_EQUAL (document.node_children("F").front()->content(), "1");
+ BOOST_CHECK_EQUAL (document.node_children("F").back()->content(), "2");
}