Update of /cvsroot/boost/boost/libs/graph/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14670
Modified Files:
graphviz_test.cpp
Log Message:
Added a test case to make sure that the contents of c-strings are not
subject to whitespace skipping.
Index: graphviz_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/graph/test/graphviz_test.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- graphviz_test.cpp 14 Oct 2006 01:13:39 -0000 1.6
+++ graphviz_test.cpp 20 Jun 2007 16:28:50 -0000 1.7
@@ -61,7 +61,7 @@
// Construct a graph and set up the dynamic_property_maps.
graph_t graph(0);
- dynamic_properties dp;
+ dynamic_properties dp(ignore_other_properties);
typename property_map<graph_t, vertex_name_t>::type name =
get(vertex_name, graph);
dp.property(node_id,name);
@@ -225,5 +225,15 @@
BOOST_CHECK((test_graph<directedS,vecS>(gs,masses,weight_map_t(),"",
&graph_name)));
}
+ // Comments embedded in strings
+ {
+ gs_t gs(
+ "digraph { "
+ "a0 [ label = \"//depot/path/to/file_14#4\" ];"
+ "a1 [ label = \"//depot/path/to/file_29#9\" ];"
+ "a0 -> a1 [ color=gray ];"
+ "}");
+ BOOST_CHECK((test_graph<directedS,vecS>(gs,mass_map_t(),weight_map_t())));
+ }
return 0;
}
-------------------------------------------------------------------------
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