X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Ftest%2Ftest_sequence.cpp;h=38852a5d6f90096ea17944374e25173845656af7;hp=cf417d95348496025280c6eadf28825ced652f0b;hb=f3e6762bedaf3775619a36f4103c8cf35d2ca887;hpb=a5fdb434dd0e6d18fe98e9ee57cb5169ce4c5842 diff --git a/alg/test/test_sequence.cpp b/alg/test/test_sequence.cpp index cf417d9..38852a5 100644 --- a/alg/test/test_sequence.cpp +++ b/alg/test/test_sequence.cpp @@ -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;