diff c/test_graph.cpp @ 200:0a27fa343257

added one test and cleaned the first and last instant mess
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 02 Mar 2012 19:32:54 -0500
parents aeab0b88c9b6
children f7ddfc4aeb1e
line wrap: on
line diff
--- a/c/test_graph.cpp	Mon Feb 20 19:32:27 2012 -0500
+++ b/c/test_graph.cpp	Fri Mar 02 19:32:54 2012 -0500
@@ -12,7 +12,7 @@
 BOOST_AUTO_TEST_SUITE(test_graph)
 
 BOOST_AUTO_TEST_CASE(graph_add_delete) {
-  FeatureGraph featureGraph(5, 1, 5, 1.);
+  FeatureGraph featureGraph(5, 1, 5 /* min time interval */, 1.);
   FeatureTrajectoryPtr ft1 = createFeatureTrajectory(10, 20, Point2f(1,1), Point2f(0.5, 0.));
   FeatureTrajectoryPtr ft2 = createFeatureTrajectory(10, 20, Point2f(1.1,1), Point2f(0.5, 0.));
 
@@ -20,9 +20,9 @@
   BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 1);
   BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 0);
 
-  // featureGraph.addFeature(ft2);
-  // BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2);
-  // BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1);
+  featureGraph.addFeature(ft2);
+  BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2);
+  BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1);
 
   
 }