switch to using boost::filesystem
[mussa.git] / alg / test / test_sequence.cpp
index bbc5068d951390895bc9e79cee8373b3ffe819f5..1a4e9ac738598af56be6614975170676656a1714 100644 (file)
@@ -1,4 +1,8 @@
 #include <boost/test/auto_unit_test.hpp>
+#include <boost/filesystem/path.hpp>
+#include <boost/filesystem/operations.hpp>
+namespace fs=boost::filesystem;
+
 #include <list>
 #include <iostream>
 
@@ -49,8 +53,10 @@ BOOST_AUTO_TEST_CASE( sequence_filter )
 //! Can we load data from a file
 BOOST_AUTO_TEST_CASE( sequence_load )
 {
+  fs::path seq_path(fs::path(EXAMPLE_DIR)/ "seq" );
+  seq_path /=  "human_mck_pro.fa";
   Sequence s;
-  s.load_fasta("examples/seq/human_mck_pro.fa");
+  s.load_fasta(seq_path);
   BOOST_CHECK_EQUAL(s.subseq(0, 5), "GGATC"); // first few chars of fasta file
   BOOST_CHECK_EQUAL(s.get_header(), "gi|180579|gb|M21487.1|HUMCKMM1 Human "
                                     "muscle creatine kinase gene (CKMM), "