Tell unittests to use native file convention for EXAMPLE_DIR
[mussa.git] / alg / test / test_sequence.cpp
index 21f3682f610af8acf3eadf66e2646fdf0c51605f..11beace88500dfce8d95db24a5d0d53970188e3e 100644 (file)
@@ -97,7 +97,7 @@ BOOST_AUTO_TEST_CASE( subseq_names )
 //! Can we load data from a file
 BOOST_AUTO_TEST_CASE( sequence_load )
 {
-  fs::path seq_path(fs::path(EXAMPLE_DIR)/ "seq" );
+  fs::path seq_path(fs::path(EXAMPLE_DIR, fs::native)/ "seq");
   seq_path /=  "human_mck_pro.fa";
   Sequence s;
   s.load_fasta(seq_path);
@@ -212,7 +212,7 @@ BOOST_AUTO_TEST_CASE( annotation_load_no_species_name )
 // have fasta headers it crashes. 
 BOOST_AUTO_TEST_CASE( sequence_past_end ) 
 {
-  fs::path seq_path(fs::path(EXAMPLE_DIR)/ "seq" );
+  fs::path seq_path(fs::path(EXAMPLE_DIR, fs::native)/ "seq" );
   seq_path /=  "misformated_seq.fa";
   Sequence s;
   BOOST_CHECK_THROW( s.load_fasta(seq_path), mussa_load_error );