-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3252 from eseiler/fix/include
[FIX] Missing include
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin | ||
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#include <gtest/gtest.h> | ||
|
||
// seqan3/io/sam_file/format_bam.hpp did not include core/debug_stream/tuple.hpp | ||
// having only the following include leads to a compile error | ||
#include <seqan3/io/sam_file/output.hpp> | ||
|
||
TEST(sam_file_output, include) | ||
{ | ||
using sam_file_output_t = seqan3::sam_file_output<seqan3::fields<seqan3::field::id>, | ||
seqan3::type_list<seqan3::format_sam, seqan3::format_bam>, | ||
std::vector<std::string>>; | ||
std::string buffer{}; | ||
std::ostringstream stream{buffer}; | ||
{ | ||
sam_file_output_t out{stream, std::vector<std::string>{}, std::vector<size_t>{}, seqan3::format_sam{}}; | ||
out.emplace_back(std::string{}); | ||
} | ||
{ | ||
sam_file_output_t out{stream, std::vector<std::string>{}, std::vector<size_t>{}, seqan3::format_bam{}}; | ||
out.emplace_back(std::string{}); | ||
} | ||
} |