Boost logo

Boost :

Subject: Re: [boost] [test] Ticket #6624 (Add a BOOST_<level>_NE_COLLECTIONS testing tool)
From: Daniel Trebbien (dtrebbien_at_[hidden])
Date: 2012-04-05 17:08:06


It occurred to me that a small demonstration would be helpful. I just
attached an archive of such a demonstration to the ticket:
https://svn.boost.org/trac/boost/attachment/ticket/6624/ticket6624.tar.bz2

The output (with --log_level=warning) is:

Running 5 test cases...
test_ticket6624.cpp(48): warning: in "test_same_collections":
condition { v1.begin(), v1.end() } != { v2.begin(), v2.end() } is not
satisfied.
Collections have the same size (3) and contents:
0: 3
1: -1
2: 10
test_ticket6624.cpp(61): error: in "test_same_collections2": check {
v1.begin(), v1.end() } != { v2.begin(), v2.end() } failed.
Collections have the same size (3) and contents:
0: 3
1: -1
2: 10
test_ticket6624.cpp(62): fatal error: in "test_same_collections2":
critical check false failed
test_ticket6624.cpp(75): fatal error: in "test_same_collections3":
critical check { v1.begin(), v1.end() } != { v2.begin(), v2.end() }
failed.
Collections have the same size (3) and contents:
0: 3
1: -1
2: 10

*** 3 failures detected in test suite "Ticket #6624 tests"

That is the expected output.

Daniel Trebbien

On 2012-04-01, Daniel Trebbien <dtrebbien_at_[hidden]> wrote:
> Hello,
>
> I have been unable to reach the current maintainer of Boost.Test
> regarding Ticket #6624: https://svn.boost.org/trac/boost/ticket/6624
>
> Would someone like to review my patch for this small enhancement and commit
> it?
>
> Daniel Trebbien
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk