Modify

Opened 7 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: rogeeff
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 7 years ago by steven_watanabe

  • Component changed from Documentation to test
  • Owner changed from matias to rogeeff

comment:2 Changed 7 years ago by steven_watanabe

  • Resolution set to fixed
  • Status changed from new to closed

This has been fixed in the trunk.

comment:3 Changed 4 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 renficiaud

  • Milestone changed from Boost 1.43.0 to Boost 1.59.0

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain rogeeff.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.