From fad36ccacd0fa1b8566fc09ceab00bc0b8f90ceb Mon Sep 17 00:00:00 2001 From: Ronald Garcia Date: Thu, 27 Mar 2003 20:19:11 +0000 Subject: [PATCH] Now using test tools. [SVN r18112] --- test/resize.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/resize.cpp b/test/resize.cpp index 0a4099f..c7e355c 100644 --- a/test/resize.cpp +++ b/test/resize.cpp @@ -2,6 +2,7 @@ // resize.cpp - Test of resizing multi_arrays // +#include "boost/test/test_tools.hpp" #include "boost/multi_array.hpp" #include using namespace std; @@ -64,12 +65,13 @@ int main() { 0,0 }; - assert(std::equal(A_resize,A_resize+(4*3*2),A.data())); + BOOST_TEST(std::equal(A_resize,A_resize+(4*3*2),A.data())); { marray defaultA; defaultA.resize(boost::extents[2][3][4]); - assert(std::accumulate(defaultA.data(),defaultA.data()+(2*3*4),0) == 0); + BOOST_TEST(std::accumulate(defaultA.data(), + defaultA.data()+(2*3*4),0) == 0); } }