diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-08 14:09:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-08 14:13:41 +0100 |
| commit | dbcf32baf0af10eeaac33460dd617bf1de3075ca (patch) | |
| tree | 90fb707cc1960f9c36cf9b0c47d2d35a3072fe6c /test | |
| parent | 3540b3350c6a172b2162c32430248cad2d236898 (diff) | |
Use std::vector instead of std::list.
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.cc | 5 |
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"); |
