BOOST_CHECK_EQUAL(motifs.begin()->get_name(), "cat");
}
+BOOST_AUTO_TEST_CASE( mussa_weirdly_spaced_named_motif )
+{
+ string data = "CCAATT cat_meow123 0.1 0.2 0.3\n";
+ istringstream test_istream(data);
+
+ Mussa m1;
+ m1.append_sequence("AAAAGGGGTTTT");
+ m1.append_sequence("GGGCCCCTTCCAATT");
+ m1.load_motifs(test_istream);
+
+ std::set<Sequence> motifs = m1.motifs();
+ BOOST_REQUIRE_EQUAL(motifs.size(), 1);
+ BOOST_CHECK_EQUAL(motifs.begin()->get_name(), "cat_meow123");
+}
BOOST_AUTO_TEST_CASE( mussa_add_motif )
{
vector<Sequence> motifs;