Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-05-25 12:52:48


"Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
news:d72cp4$bhu$1_at_sea.gmane.org...
> "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> wrote in message
> news:d726p5$k5p$1_at_sea.gmane.org...
> | using namespace std;
> | using namespace boost;
> |
> | > BOOST_CHECK_NOT_EQUAL(x,y)
> |
> | BOOST_CHECK_PREDICATE( not_equal_to<T>(), (x)(y) );
> |
> | > BOOST_CHECK_NOT_CLOSE(x,y)
> |
> | BOOST_CHECK_PREDICATE( not( test_tools::check_is_close ),
> | (x)(y)(tolerance) );
>
> ok, but I still think it is too much of typing to do what I need in a
> straightforward manner.

There are a lot of predicates: > , < >=, != etc. Add conjunctions and you
will have exponential amount. I couldn't incorporate all possible predicates
into library. Instead I provide generic tool. If you need this frequently in
some test module you could define one yourself.

Gennadiy.


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