libsequence  1.9.5
testAlleleCountMatrix.cc
Go to the documentation of this file.
1 #include "VariantMatrixFixture.hpp"
3 #include <boost/test/unit_test.hpp>
4 #include <algorithm>
5 #include <numeric> //for std::iota
6 #include <iterator>
7 
8 BOOST_FIXTURE_TEST_SUITE(test_allele_count_matrix, dataset)
9 
10 BOOST_AUTO_TEST_CASE(test_max_allele_exception)
11 {
12  //Change some data in m so that m[i] > m.max_allele
13  m.data[0] = 5;
14 
15  BOOST_REQUIRE_THROW(Sequence::AlleleCountMatrix ac(m),std::runtime_error);
16 }
17 
18 BOOST_AUTO_TEST_SUITE_END()
19 
Matrix representation of allele counts in a VariantMatrix To be constructed.