Update of /cvsroot/boost/boost/libs/property_map/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12552
Modified Files:
dynamic_properties_test.cpp
Log Message:
Added a test for ignore_other_properties.
Index: dynamic_properties_test.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/property_map/test/dynamic_properties_test.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- dynamic_properties_test.cpp 18 May 2005 03:51:29 -0000 1.4
+++ dynamic_properties_test.cpp 26 Apr 2007 22:11:20 -0000 1.5
@@ -125,5 +125,12 @@
BOOST_CHECK(get("nada",props,std::string("3.14")) == "pi");
}
+ // Use the ignore_other_properties generator
+ {
+ boost::dynamic_properties props(&boost::ignore_other_properties);
+ bool value = put("nada",props,std::string("3.14"),std::string("pi"));
+ BOOST_CHECK(value == false);
+ }
+
return boost::exit_success;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs