From f14719c3a9cb1ddf082d9209f4c7a161f316d813 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 28 Jun 2017 10:04:25 -0700 Subject: [PATCH] Replace an assert in a test with BOOST_CHECK --- test/reduce_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/reduce_test.cpp b/test/reduce_test.cpp index 78c43d3..ec47db2 100644 --- a/test/reduce_test.cpp +++ b/test/reduce_test.cpp @@ -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()); - assert(res == 40320); // 8! will not fit into a char + BOOST_CHECK(res == 40320); // 8! will not fit into a char } }