summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tests.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/tests.cc b/test/tests.cc
index 6867ac0..633aaa2 100644
--- a/test/tests.cc
+++ b/test/tests.cc
@@ -27,10 +27,9 @@
#define BOOST_TEST_MODULE libcxml_test
#include <boost/test/unit_test.hpp>
+using std::shared_ptr;
using std::string;
using std::vector;
-using std::list;
-using std::shared_ptr;
BOOST_AUTO_TEST_CASE (test)
{
@@ -68,7 +67,7 @@ BOOST_AUTO_TEST_CASE (test)
BOOST_CHECK (!document.optional_bool_child("G"));
- list<shared_ptr<cxml::Node> > h = document.node_children ("H");
+ vector<shared_ptr<cxml::Node>> 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.front()->node_children("I").front()->content(), "testing");