Modify

Ticket #3964 (closed Bugs: fixed)

Opened 4 years ago

Last modified 11 months ago

Documentation for BOOST_<level>_CLOSE_FRACTION is incorrect

Reported by: ian@… Owned by: rogeeff
Milestone: Boost 1.43.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

Change History

comment:1 Changed 4 years ago by steven_watanabe

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

comment:2 Changed 4 years ago by steven_watanabe

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

This has been fixed in the trunk.

comment:3 Changed 11 months 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."

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.