Opened 13 years ago

Closed 7 years ago

#3871 closed Patches (wontfix)

Add BOOST_CHECK_EQUAL_RANGE to UTF

Reported by: Marcus Lindblom <macke@…> Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.39.0 Severity: Not Applicable
Keywords: Cc:

Description

The following works nicely. The user has to include begin/end themselves, but it makes checking collections so much easier.

define BOOST_CHECK_EQUAL_RANGE(L,R) BOOST_CHECK_EQUAL_COLLECTIONS(boost::begin(L), boost::end(L), boost::begin(R), boost::end(R))
}}}}

Change History (2)

comment:1 by Steven Watanabe, 12 years ago

This doesn't work if the range is an expression.

comment:2 by Gennadiy Rozental, 7 years ago

Milestone: Boost 1.42.0Boost 1.59.0
Resolution: wontfix
Status: newclosed

New Boost.Test release supports different syntax:

BOOST_TEST(l==R,test_tools::lexicographic())

or

BOOST_TEST(l==R,test_tools::per_element())

Note: See TracTickets for help on using tickets.