[pkg-boost-devel] Bug#338417: marked as done (libboost-test-dev: BOOST_CHECK_CLOSE out of work)

Debian Bug Tracking System owner at bugs.debian.org
Thu Nov 10 08:33:08 UTC 2005


Your message dated Thu, 10 Nov 2005 16:18:44 +0800
with message-id <8eae5a660511100018v5e63da63y382e777af41c8607 at mail.gmail.com>
and subject line Bug#338417: Acknowledgement (libboost-test-dev: BOOST_CHECK_CLOSE out of work)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 10 Nov 2005 07:35:39 +0000
>From lidaobing at gmail.com Wed Nov 09 23:35:38 2005
Return-path: <lidaobing at gmail.com>
Received: from zproxy.gmail.com ([64.233.162.205])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Ea6sE-0000tf-EL
	for submit at bugs.debian.org; Wed, 09 Nov 2005 23:29:30 -0800
Received: by zproxy.gmail.com with SMTP id i28so320601nzi
        for <submit at bugs.debian.org>; Wed, 09 Nov 2005 23:29:29 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
        b=jdD3AsDRl9FroyAY40sJiDtWehRv/SWReFmjomjxgfRGYG3aDCXRjlz4xvXfyWPagL9TUYlYGZFP7ODGbWcPv8z8dZO1dNnvX6z4LZmwtArYD+LG5k1L/TM9KnL7c8/kwP+/GTHZ8m4pWbNLamuZoU+L2uSbmk1dOqZdKd1Dxfk=
Received: by 10.36.251.77 with SMTP id y77mr326173nzh;
        Wed, 09 Nov 2005 23:29:29 -0800 (PST)
Received: by 10.36.133.19 with HTTP; Wed, 9 Nov 2005 23:29:29 -0800 (PST)
Message-ID: <8eae5a660511092329o13755687rd790abbd6aea7f57 at mail.gmail.com>
Date: Thu, 10 Nov 2005 15:29:29 +0800
From: LI Daobing <lidaobing at gmail.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: libboost-test-dev: BOOST_CHECK_CLOSE out of work
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: libboost-test-dev
Version: 1.33.0-3
Severity: normal

This example is from [1].
[1] http://www.boost.org/libs/test/doc/components/test_tools/reference/BOOS=
T_CHECK_CLOSE.html

$ cat boost-check-close.cpp
#include <boost/test/auto_unit_test.hpp>

int main( int, char* [] ) {
    double v1 =3D 1.23456e-10;
    double v2 =3D 1.23457e-10;

    BOOST_CHECK_CLOSE( v1, v2, 0.0001 );
    // Absolute value of difference between these two values is 1e-15.
They seems
    // to be very close. But we want to checks that these values
differ no more then 0.0001%
    // of their value. And this test will fail at tolerance supplied.

    return 0;
}
$ g++ -c boost-check-close.cpp
boost-check-close.cpp: In function 'int main(int, char**)':
boost-check-close.cpp:7: error: 'check_is_close' is not a member of
'boost::test_tools'
$ g++ -E -dM boost-check-close.cpp | grep BOOST_CHECK_CLOSE
#define BOOST_CHECK_CLOSE(L,R,T) BOOST_CHECK_WITH_ARGS_IMPL(
boost::test_tools::check_is_close, "", CHECK, CHECK_CLOSE, (L)(R)(T) )


--
LI Daobing

---------------------------------------
Received: (at 338417-done) by bugs.debian.org; 10 Nov 2005 08:18:44 +0000
>From lidaobing at gmail.com Thu Nov 10 00:18:44 2005
Return-path: <lidaobing at gmail.com>
Received: from zproxy.gmail.com ([64.233.162.206])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Ea7ds-0001Xd-PY
	for 338417-done at bugs.debian.org; Thu, 10 Nov 2005 00:18:44 -0800
Received: by zproxy.gmail.com with SMTP id i28so326762nzi
        for <338417-done at bugs.debian.org>; Thu, 10 Nov 2005 00:18:44 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=aRVciC5WHqFZuWFu5P+Jy3XGeKsQxJM+tI16YPgyj58zCUcmSTQ3cgBp++T3At8mgUa7q3mSMXFVpeUNoAFDSTWajVfHIuSBUt4N4LzxiETSb6MW//sEGcyxjXK8li7rNllrmn96VgJv1Cs1FwK0LRrKRXgZ/asx0N0pCrZGDwo=
Received: by 10.36.251.77 with SMTP id y77mr351104nzh;
        Thu, 10 Nov 2005 00:18:44 -0800 (PST)
Received: by 10.36.133.19 with HTTP; Thu, 10 Nov 2005 00:18:44 -0800 (PST)
Message-ID: <8eae5a660511100018v5e63da63y382e777af41c8607 at mail.gmail.com>
Date: Thu, 10 Nov 2005 16:18:44 +0800
From: LI Daobing <lidaobing at gmail.com>
To: 338417-done at bugs.debian.org
Subject: Re: Bug#338417: Acknowledgement (libboost-test-dev: BOOST_CHECK_CLOSE out of work)
In-Reply-To: <handler.338417.B.11316081396500.ack at bugs.debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
References: <8eae5a660511092329o13755687rd790abbd6aea7f57 at mail.gmail.com>
	 <handler.338417.B.11316081396500.ack at bugs.debian.org>
Delivered-To: 338417-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

It's my fault, I should add

#include <boost/test/floating_point_comparison.hpp>

to test file.

--
LI Daobing



More information about the pkg-boost-devel mailing list