Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-02-02 22:46:30


I'm not sure I see the value in that vs:

BOOST_REQUIRE_IS_DIVISIBLE_BY(result,3)

I must be missing something

-----Original Message-----
From: boost-bounces_at_[hidden] on behalf of Dean Michael Berris
Sent: Fri 2/2/2007 7:08 PM

  BOOST_AUTO_TEST_CASE ( some_test ) {
    int result = perform_some_operation("Hello, World!");
    value(result).should.be_divisible_by(3);
  };

as compared to

  BOOST_AUTO_TEST_CASE ( some_test ) {
    int result = perform_some_operation("Hello, World!");
    BOOST_REQUIRE_EQUAL ( true, ((result % 3) == 0) );
  };

HTH!

-- 
Dean Michael C. Berris
http://cplusplus-soup.blogspot.com/
mikhailberis AT gmail DOT com
+63 928 7291459
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

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