Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50361 - in trunk/libs/test: example test
From: gennadiy.rozental_at_[hidden]
Date: 2008-12-22 03:03:54


Author: rogeeff
Date: 2008-12-22 03:03:54 EST (Mon, 22 Dec 2008)
New Revision: 50361
URL: http://svn.boost.org/trac/boost/changeset/50361

Log:
test,example update
Text files modified:
   trunk/libs/test/example/test_case_template_example.cpp | 3 +--
   trunk/libs/test/test/test_fp_comparisons.cpp | 9 +++++++++
   2 files changed, 10 insertions(+), 2 deletions(-)

Modified: trunk/libs/test/example/test_case_template_example.cpp
==============================================================================
--- trunk/libs/test/example/test_case_template_example.cpp (original)
+++ trunk/libs/test/example/test_case_template_example.cpp 2008-12-22 03:03:54 EST (Mon, 22 Dec 2008)
@@ -10,8 +10,7 @@
 # pragma warning(disable: C4345)
 #endif
 
-#include <boost/test/test_tools.hpp>
-#include <boost/test/test_case_template.hpp>
+#include <boost/test/unit_test.hpp>
 using boost::unit_test::test_suite;
 
 // Boost.MPL

Modified: trunk/libs/test/test/test_fp_comparisons.cpp
==============================================================================
--- trunk/libs/test/test/test_fp_comparisons.cpp (original)
+++ trunk/libs/test/test/test_fp_comparisons.cpp 2008-12-22 03:03:54 EST (Mon, 22 Dec 2008)
@@ -133,6 +133,15 @@
 
 //____________________________________________________________________________//
 
+BOOST_AUTO_TEST_CASE( test_type_mismatch )
+{
+ BOOST_CHECK_CLOSE( 2, 2.1, 6 );
+ BOOST_CHECK_CLOSE( 2.1, 2, 6 );
+ BOOST_CHECK_CLOSE( 2.1, 2.f, 6 );
+}
+
+//____________________________________________________________________________//
+
 BOOST_AUTO_TEST_CASE( test_CHECK_SMALL )
 {
     BOOST_CHECK_SMALL( 1e-6, 1e-5 );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk