#include <boost/test/auto_unit_test.hpp>
#include <string>
+#include <sstream>
+#include <vector>
#include "alg/mussa.hpp"
+using namespace std;
+
//! can we initialize a mussa object?
BOOST_AUTO_TEST_CASE( mussa_simple )
{
BOOST_CHECK( m1.size() > 0);
}
+
+BOOST_AUTO_TEST_CASE( mussa_load_motif )
+{
+ string data = "AAGG 1.0 1.0 0.0\n"
+ "GGTT 0.0 0.1 1.0\n"
+ "ZXY 2 1.9 0\n";
+
+ istringstream test_istream(data);
+
+ Mussa m1;
+ m1.add_a_seq("AAAAGGGGTTTT");
+ m1.add_a_seq("GGGCCCCTTGGTT");
+ m1.load_motifs(test_istream);
+
+ for (vector<Sequence>::const_iterator seq_i = m1.sequences().begin();
+ seq_i != m1.sequences().end();
+ ++seq_i)
+ {
+ BOOST_CHECK( seq_i->motifs().size() > 0 );
+ }
+}