mirror of
https://github.com/boostorg/range.git
synced 2025-07-17 06:32:24 +02:00
[range] - corrected defected test for the partition algorithm.
[SVN r64001]
This commit is contained in:
@ -73,11 +73,10 @@ namespace boost
|
|||||||
Container cont2(old_cont);
|
Container cont2(old_cont);
|
||||||
result_t result = boost::partition<return_type>(cont, policy.pred());
|
result_t result = boost::partition<return_type>(cont, policy.pred());
|
||||||
|
|
||||||
result_t temp_result = boost::partition<return_type>(
|
// Test that operation a temporary created by using
|
||||||
cont2, policy.pred());
|
// make_iterator_range.
|
||||||
cont2 = old_cont;
|
boost::partition<return_type>(
|
||||||
BOOST_CHECK( temp_result == boost::partition<return_type>(
|
boost::make_iterator_range(cont2), policy.pred());
|
||||||
boost::make_iterator_range(cont2), policy.pred()) );
|
|
||||||
|
|
||||||
BOOST_CHECK_EQUAL_COLLECTIONS( cont.begin(), cont.end(),
|
BOOST_CHECK_EQUAL_COLLECTIONS( cont.begin(), cont.end(),
|
||||||
cont2.begin(), cont2.end() );
|
cont2.begin(), cont2.end() );
|
||||||
|
Reference in New Issue
Block a user