Made min/max usage conform to our guidelines.

Changed Boost.test usage to conform to new interface.


[SVN r27271]
This commit is contained in:
John Maddock
2005-02-09 12:33:18 +00:00
parent 1df0b9cacd
commit eff6f06792
7 changed files with 16 additions and 28 deletions

View File

@ -110,10 +110,7 @@ void test(const std::vector< ::boost::uint32_t>& v)
j = i;
std::advance(j, (std::min)(v.size(), v32.size()));
k = v32.begin();
BOOST_CHECK_EQUAL_COLLECTIONS(
i,
j,
k);
BOOST_CHECK_EQUAL_COLLECTIONS(v.begin(), v.end(), v32.begin(), v32.end());
//
// test backward iteration, of 32-16 bit interconversions:
//
@ -133,10 +130,7 @@ void test(const std::vector< ::boost::uint32_t>& v)
j = i;
std::advance(j, (std::min)(v.size(), v32.size()));
k = v32.begin();
BOOST_CHECK_EQUAL_COLLECTIONS(
i,
j,
k);
BOOST_CHECK_EQUAL_COLLECTIONS(v.begin(), v.end(), v32.begin(), v32.end());
#endif
//
// Test forward iteration, of 32-8 bit interconversions:
@ -164,10 +158,7 @@ void test(const std::vector< ::boost::uint32_t>& v)
j = i;
std::advance(j, (std::min)(v.size(), v32.size()));
k = v32.begin();
BOOST_CHECK_EQUAL_COLLECTIONS(
i,
j,
k);
BOOST_CHECK_EQUAL_COLLECTIONS(v.begin(), v.end(), v32.begin(), v32.end());
//
// test backward iteration, of 32-8 bit interconversions:
//
@ -187,10 +178,7 @@ void test(const std::vector< ::boost::uint32_t>& v)
j = i;
std::advance(j, (std::min)(v.size(), v32.size()));
k = v32.begin();
BOOST_CHECK_EQUAL_COLLECTIONS(
i,
j,
k);
BOOST_CHECK_EQUAL_COLLECTIONS(v.begin(), v.end(), v32.begin(), v32.end());
#endif
}