store motifs as sequences instead of strings
[mussa.git] / alg / test / test_sequence.cpp
index cf543fd00c603bce8b0286ed5ffafb08ef8a91c2..812a7a3cd7f87888d7610c4b5d32c22cc7532ee7 100644 (file)
@@ -246,6 +246,23 @@ BOOST_AUTO_TEST_CASE( sequence_motifs )
 
   s1.clear_motifs();
   BOOST_CHECK( s1.motifs().begin() == s1.motifs().end() );
+
+  /* FIXME: enable this when i find a way of passing storing the motif name
+  // does our annotation travel?
+  Sequence motif_seq(m);
+  motif_seq.set_header("hi");
+  s1.add_motif(motif_seq);
+
+  BOOST_CHECK_EQUAL(s1.motifs().size(), 2);
+  for(motif_i = s1.motifs().begin(); 
+      motif_i != s1.motifs().end(); 
+      ++motif_i)
+  {
+    BOOST_CHECK_EQUAL( motif_i->type, "motif" );
+    BOOST_CHECK_EQUAL( motif_i->name, "hi");
+    BOOST_CHECK_EQUAL( motif_i->sequence, m);
+  }
+  */
 }
 
 BOOST_AUTO_TEST_CASE( annot_test )