mirror of
https://github.com/boostorg/regex.git
synced 2025-06-29 13:50:59 +02:00
Made min/max usage conform to our guidelines.
Changed Boost.test usage to conform to new interface. [SVN r27271]
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user