keep track of how far through a seqcomp we've gotten
[mussa.git] / alg / test / test_flp.cpp
index cc8500b16b8aabfa9cfb2eea6cf3f9b7dd5734eb..4706e8de6af5b46511f7d4f0cbd09887be8a974b 100644 (file)
@@ -17,7 +17,13 @@ BOOST_AUTO_TEST_CASE( flp_simple )
 {
   FLPs f;
   f.setup(5, 4);
+  // when we first setup progress should be equal to -1 
+  // aka FLPs::seqcomp_not_running 
+  BOOST_CHECK_EQUAL( f.progress(), -1 );
   f.seqcomp("AAGGTAAGGT", "AAGGTAAGGT", false);
+  // now that we're done we should be equal to not running again.
+  // yeah it'd be nice to make a thread test
+  BOOST_CHECK_EQUAL( f.progress(), -1 );
   
   // are the match_locations correct?
   for (int i=0; i != f.size(); i++)