diff --git a/test/api/layout/user_bin_io_test.cpp b/test/api/layout/user_bin_io_test.cpp index 771311d1..8e9fc97c 100644 --- a/test/api/layout/user_bin_io_test.cpp +++ b/test/api/layout/user_bin_io_test.cpp @@ -9,13 +9,16 @@ TEST(output, user_bins) { - std::vector> const filenames{{"file1.fa"}, {"file2.fa"}, {"path/to/file3.fa"}, {"file4.fastq"}}; + std::vector> const filenames{{"file1.fa", "fileB.fa"}, + {"file2.fa"}, + {"path/to/file3.fa"}, + {"file4.fastq"}}; std::stringstream ss{}; chopper::layout::write_user_bins_to(filenames, ss); std::string const expected{"@CHOPPER_USER_BINS\n" - "@0 file1.fa\n" + "@0 file1.fa fileB.fa\n" "@1 file2.fa\n" "@2 path/to/file3.fa\n" "@3 file4.fastq\n" @@ -27,14 +30,14 @@ TEST(output, user_bins) TEST(input, user_bins) { std::stringstream ss{"@CHOPPER_USER_BINS\n" - "@0 file1.fa\n" + "@0 file1.fa fileB.fa\n" "@1 file2.fa\n" "@2 path/to/file3.fa\n" "@3 file4.fastq\n" "@CHOPPER_USER_BINS_END\n"}; std::vector> filenames = chopper::layout::read_filenames_from(ss); - std::vector> const expected{{"file1.fa"}, + std::vector> const expected{{"file1.fa", "fileB.fa"}, {"file2.fa"}, {"path/to/file3.fa"}, {"file4.fastq"}};