Commit 6a96c61a authored by Armin Sobhani's avatar Armin Sobhani
Browse files

update unit test for multi-fasta file

parent 9fab6996
......@@ -133,12 +133,22 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
// in >> std::skipws;
std::list<T> reads
std::vector<T> reads
{
std::istream_iterator<T>(in)
, std::istream_iterator<T>()
};
BOOST_CHECK_EQUAL(reads.size(), 4);
BOOST_CHECK_EQUAL(reads[0].size(), 150);
BOOST_CHECK_EQUAL(reads[1].size(), 150);
BOOST_CHECK_EQUAL(reads[2].size(), 150);
BOOST_CHECK_EQUAL(reads[3].size(), 150);
BOOST_CHECK_EQUAL(reads[0].name(), "gi|406593966|ref|NC_018627.1|-40485/1");
BOOST_CHECK_EQUAL(reads[1].name(), "gi|406593966|ref|NC_018627.1|-40485/2");
BOOST_CHECK_EQUAL(reads[2].name(), "gi|406593966|ref|NC_018627.1|-37467/1");
BOOST_CHECK_EQUAL(reads[3].name(), "gi|406593966|ref|NC_018627.1|-37467/2");
// std::list<T> reads;
// std::copy(
// std::istream_iterator<T>(in)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment