From: <vac...@us...> - 2010-03-11 15:31:05
|
Revision: 177 http://xmlwrapp.svn.sourceforge.net/xmlwrapp/?rev=177&view=rev Author: vaclavslavik Date: 2010-03-11 15:30:57 +0000 (Thu, 11 Mar 2010) Log Message: ----------- Add test for xml::node::set_text_content(). Modified Paths: -------------- trunk/tests/node/test_node.cxx Modified: trunk/tests/node/test_node.cxx =================================================================== --- trunk/tests/node/test_node.cxx 2010-03-11 15:30:14 UTC (rev 176) +++ trunk/tests/node/test_node.cxx 2010-03-11 15:30:57 UTC (rev 177) @@ -612,4 +612,14 @@ } +BOOST_AUTO_TEST_CASE( escape_set_text_content ) +{ + xml::node n("root"); + n.set_text_content("Marlow & Sons"); + + BOOST_CHECK_EQUAL( n.get_content(), "Marlow & Sons" ); + BOOST_CHECK( is_same_as_file(n, "node/data/special_chars.xml") ); +} + + BOOST_AUTO_TEST_SUITE_END() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |