Replace an assert in a test with BOOST_CHECK

This commit is contained in:
Marshall Clow
2017-06-28 10:04:25 -07:00
parent 6bd8bc197a
commit f14719c3a9

View File

@ -69,7 +69,7 @@ void test_reduce_init_op()
char ia[] = {1, 2, 3, 4, 5, 6, 7, 8};
unsigned sa = sizeof(ia) / sizeof(ia[0]);
unsigned res = boost::algorithm::reduce(ia, ia+sa, 1U, std::multiplies<unsigned>());
assert(res == 40320); // 8! will not fit into a char
BOOST_CHECK(res == 40320); // 8! will not fit into a char
}
}