2 #include <boost/test/unit_test.hpp>
4 BOOST_AUTO_TEST_SUITE( Tree_Suite )
6 BOOST_AUTO_TEST_CASE( test_case1 )
9 tree<std::string>::iterator top, one, two, loc, banana, three;
12 one=tr.insert(top,
"one");
13 two=tr.append_child(one,
"two");
14 tr.append_child(two,
"apple");
15 banana=tr.append_child(two,
"banana");
16 tr.append_child(banana,
"cherry");
17 tr.append_child(two,
"peach");
18 three = tr.append_child(one,
"three");
22 tr.move_below(banana, three);
27 BOOST_AUTO_TEST_SUITE_END()