Commit b35dad69 authored by Armin Sobhani's avatar Armin Sobhani
Browse files

add commented random sequence generation snippet to test_io_fasta

parent 2ce82044
......@@ -10,6 +10,7 @@
#include <fstream>
#include <chrono>
#include <iostream>
#include <random>
// #define BOOST_TEST_MAIN
#define BOOST_TEST_MODULE TestIOFasta
......@@ -229,4 +230,13 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
// auto d = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - start);
// std::cout << "Elapsed time: " << d.count() << " ms" << std::endl;
// // std::default_random_engine rd;
// std::random_device rd;
// std::uniform_int_distribution<int> dist(0, 3);
// // T rs(150);
// // rs.name("random sequence");
// char nuc[] = "ACGT";
// std::generate_n( reads[0].begin(), 150, [&] () { return nuc[dist(rd)]; } );
// std::cout << reads[0];
}
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