forked from boostorg/container
Use algo_equal to reduce test dependencies
This commit is contained in:
1 parent
8d0dc6daeb
commit
4ea9c64316
2 files changed
+10
-10
No files matched your search
+3
-3
@@ -13,6 +13,7 @@
|
||||
#define BOOST_CONTAINER_TEST_TEST_UTIL_HPP
|
||||
|
||||
#include "test_elem.hpp"
|
||||
#include <boost/container/detail/algorithm.hpp> //algo_equal(), algo_lexicographical_compare
|
||||
|
||||
// get_range
|
||||
|
||||
@@ -86,8 +87,7 @@ void print_range(std::ostream& out, Array (&range)[N])
|
||||
template <typename C1, typename C2, unsigned N>
|
||||
void test_equal_range(const C1& a, const C2 (&b)[N])
|
||||
{
|
||||
bool equals = boost::algorithm::equal
|
||||
(a.begin(), a.end(), b, b+N);
|
||||
bool equals = ::boost::container::algo_equal(a.begin(), a.end(), b, b+N);
|
||||
|
||||
BOOST_TEST(equals);
|
||||
|
||||
@@ -104,7 +104,7 @@ void test_equal_range(const C1& a, const C2 (&b)[N])
|
||||
template <typename C1, typename C2>
|
||||
void test_equal_range(const C1& a, const C2&b)
|
||||
{
|
||||
bool equals = boost::algorithm::equal
|
||||
bool equals = boost::container::algo_equal
|
||||
(a.begin(), a.end(), b.begin(), b.end());
|
||||
|
||||
BOOST_TEST(equals);
|
||||
|
||||
Reference in new issue
Block a user