Modify

Opened 8 years ago

Closed 7 years ago

Last modified 2 years ago

#3964 closed Bugs (fixed)

Documentation for BOOST_<level>_CLOSE_FRACTION is incorrect

Reported by: ian@… Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

The documentation for BOOST_<level>_CLOSE_FRACTION at the url http://www.boost.org/doc/libs/1_42_0/libs/test/doc/html/utf/testing-tools/reference.html is incorrect.

"Last third parameter defines the tolerance for the comparison in percentage units."

should be:

"The third and last parameter defines the tolerance for the comparison as a fractional value."

So, please correct me if I am wrong, but the following are equal:

BOOST_CHECK_CLOSE(x, y, 10);

BOOST_CHECK_CLOSE_FRACTION(x, y, 0.1);

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Steven Watanabe

Component: Documentationtest
Owner: changed from Matias Capeletto to Gennadiy Rozental

comment:2 Changed 7 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

This has been fixed in the trunk.

comment:3 Changed 5 years ago by anonymous

This problem is still not fixed in the 1.53 release - at least in the online documentation at http://www.boost.org/doc/libs/1_53_0/libs/test/doc/html/utf/testing-tools/reference.html

Both CLOSE and CLOSE_FRACTION descriptions state "Last third parameter defines the tolerance for the comparison in percentage units."

comment:4 Changed 2 years ago by Raffi Enficiaud

Milestone: Boost 1.43.0Boost 1.59.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gennadiy Rozental.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.