incorporate drawable and annotations
[mussa.git] / alg / test / test_sequence.cpp
index cf417d95348496025280c6eadf28825ced652f0b..38852a5d6f90096ea17944374e25173845656af7 100644 (file)
@@ -20,6 +20,19 @@ namespace fs=boost::filesystem;
 
 using namespace std;
 
+BOOST_AUTO_TEST_CASE( sequence_copy_constructor )
+{
+  SequenceRef s(new Sequence("AAAAGGGG"));
+  s->set_species("foo");
+  BOOST_CHECK_EQUAL(s->get_species(), "foo");
+  
+  SequenceRef c(new Sequence(s));
+  BOOST_CHECK_EQUAL(c->get_species(), "foo");
+
+  c->set_species("bar");
+  BOOST_CHECK_EQUAL(s->get_species(), "foo");
+  BOOST_CHECK_EQUAL(c->get_species(), "bar");
+}
 BOOST_AUTO_TEST_CASE( sequence_get_sequence )
 {
        Sequence s;