X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=alg%2Ftest%2Ftest_glseqbrowser.cpp;h=9587472ae5ab73bbbea1ae6780d5e70a3f0230ae;hb=HEAD;hp=bbed0623312d5252e4a80f8eab1403408ac376aa;hpb=7d4fbcb6060a60a8ea25ca1303fcaaaf8574f24a;p=mussa.git diff --git a/alg/test/test_glseqbrowser.cpp b/alg/test/test_glseqbrowser.cpp index bbed062..9587472 100644 --- a/alg/test/test_glseqbrowser.cpp +++ b/alg/test/test_glseqbrowser.cpp @@ -1,5 +1,7 @@ -#define BOOST_AUTO_TEST_MAIN -#include +#define BOOST_TEST_DYN_LINK +#define BOOST_TEST_MODULE test_glseqbrowser +#include + #include using namespace boost::assign; @@ -9,9 +11,10 @@ using namespace boost::assign; #include #include -#include "alg/annotation_colors.hpp" -#include "alg/glseqbrowser.hpp" -#include "alg/sequence.hpp" +#include "annotation_colors.hpp" +#include "glseqbrowser.hpp" +#include "mussa.hpp" +#include "sequence.hpp" using namespace std; @@ -157,7 +160,7 @@ BOOST_AUTO_TEST_CASE( setSelectedPaths ) Sequence seq0(s0); Sequence seq1(s1); Sequence seq2(s2); - + GlSeqBrowser gt; gt.push_sequence(seq0); gt.push_sequence(seq1); @@ -195,7 +198,6 @@ BOOST_AUTO_TEST_CASE( setSelectedTracks ) gt.push_sequence(seq1); gt.push_sequence(seq2); - BOOST_CHECK_EQUAL( gt.selectedTracks().size(), 0 ); gt.appendSelectedTrack(0, 0, seq0.size()); gt.appendSelectedTrack(2, 0, seq2.size()); @@ -218,5 +220,4 @@ BOOST_AUTO_TEST_CASE( setSelectedTracks ) BOOST_CHECK_EQUAL(seq_locs.front().getSequence(), seq0); BOOST_CHECK_EQUAL(seq_locs.front().getLeft(), 0); BOOST_CHECK_EQUAL(seq_locs.front().getRight(), 2); - }