Commit 561274a5 authored by Carsten Kemena's avatar Carsten Kemena

changing internal structure of SequenceSet

Changed from shared_ptr to normal SequenceObject in vector to make iterator usage much simpler
parent 6f2b58a5
This diff is collapsed.
......@@ -108,9 +108,9 @@ BOOST_AUTO_TEST_CASE( AlignmentFunction_Test )
BOOST_CHECK_EQUAL(aln3[1].seq(), "TVL-LSPSY");
BioSeqDataLib::Alignment<BioSeqDataLib::Sequence<> > alnIdentity;
alnIdentity.push_back(new BioSeqDataLib::Sequence<>("Seq1","ACGt", "", "test sequence"));
alnIdentity.push_back(new BioSeqDataLib::Sequence<>("Seq2","AcGt", "", "test sequence"));
alnIdentity.push_back(new BioSeqDataLib::Sequence<>("Seq3","A-et", "", "test sequence"));
alnIdentity.push_back(BioSeqDataLib::Sequence<>("Seq1","ACGt", "", "test sequence"));
alnIdentity.push_back(BioSeqDataLib::Sequence<>("Seq2","AcGt", "", "test sequence"));
alnIdentity.push_back(BioSeqDataLib::Sequence<>("Seq3","A-et", "", "test sequence"));
BioSeqDataLib::TwoValues vals = BioSeqDataLib::identity(alnIdentity);
BOOST_CHECK_EQUAL(vals.first(), 8);
BOOST_CHECK_EQUAL(vals.second(), 10);
......
......@@ -157,7 +157,7 @@ BOOST_AUTO_TEST_CASE( Sequence_changing_Test)
BOOST_CHECK_EQUAL(set2.find("seq2")->name(), "seq2");
BioSeqDataLib::Sequence<> *tmpSeq = new BioSeqDataLib::Sequence<>("seq3", "ACGT", "", "");
BioSeqDataLib::Sequence<> tmpSeq("seq3", "ACGT", "", "");
set1.push_back(tmpSeq);
BOOST_CHECK_EQUAL(set1.size(), 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment