mirror of
https://github.com/boostorg/multi_array.git
synced 2025-05-09 15:03:52 +00:00
Now using test tools.
[SVN r18112]
This commit is contained in:
parent
0de8b74284
commit
fad36ccacd
@ -2,6 +2,7 @@
|
||||
// resize.cpp - Test of resizing multi_arrays
|
||||
//
|
||||
|
||||
#include "boost/test/test_tools.hpp"
|
||||
#include "boost/multi_array.hpp"
|
||||
#include <iostream>
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user