ecp_base.extend(growth);
BOOST_CHECK_EQUAL( ecp_base.window_size, window_size + growth );
}
+
+BOOST_AUTO_TEST_CASE ( extended_conserved_normalized )
+{
+ vector<int> path;
+ path += 3,-14,5,-19; // magic from boost assign
+ vector<int> normalized_path;
+ normalized_path += 3,4, 5,9;
+
+ ExtendedConservedPath ecp1;
+ ecp1.window_size = 10;
+ ecp1.score = 18;
+ ecp1.track_indexes = path;
+ BOOST_CHECK_EQUAL ( ecp1.size(), path.size() );
+
+ vector<ConservedPath::path_element> normalized_index(ecp1.normalizedIndexes());
+
+ for(int i=0; i != ecp1.size(); ++i)
+ {
+ BOOST_CHECK_EQUAL(normalized_index[i], normalized_path[i]);
+ }
+}
+