Bugs item #754551, was opened at 2003-06-14 11:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=754551&group_id=7586
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alain Ross (alain_ross) Assigned to: Nobody/Anonymous (nobody) Summary: BOOST_CHECK_CLOSE in Boost Test Library Initial Comment: /* I am running this test under Windows 98 using Microsoft Visual Studio 6. The following small test program should return no error because the both values are in the specified 1e-6 range. The program returns this unsuspected output: Running 1 test case... D:\Projets\Documentation\Test_DocLib\Test_DocLib.cpp (48): error in "BOOST_CHECK_ CLOSE_test": test 1.49012e-8 ~= 0.0 failed [1.49012e- 008 !~= 0 (+/-1e-006)] *** 1 failure detected in test suite "Test BOOST_CHECK_CLOSE" */ #include <boost/test/unit_test.hpp> #include <boost/test/floating_point_comparison.hpp> using namespace std; using boost::unit_test_framework::test_suite; void BOOST_CHECK_CLOSE_test( void ) { BOOST_CHECK_CLOSE( 1.49012e-8, 0.0, 1e-6 ); } test_suite* init_unit_test_suite( int argc, char *argv[] ) { test_suite *test = BOOST_TEST_SUITE( "Test BOOST_CHECK_CLOSE" ); test->add( BOOST_TEST_CASE( &BOOST_CHECK_CLOSE_test ) ); return test; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=754551&group_id=7586 ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Boost-bugs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/boost-bugs _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost