Skip to content

hypervolume: fix flaky floating point comparisons tests - #627

Open
jschueller wants to merge 1 commit into
esa:masterfrom
jschueller:issue516
Open

hypervolume: fix flaky floating point comparisons tests#627
jschueller wants to merge 1 commit into
esa:masterfrom
jschueller:issue516

Conversation

@jschueller

Copy link
Copy Markdown
Contributor

Replace equality checks (==) with BOOST_CHECK_SMALL using a 1e-12 tolerance for computed double values throughout the hypervolume test suite, fixing test failures on platforms with differing floating point precision.

Closes #516

Replace equality checks (==) with BOOST_CHECK_SMALL using a 1e-12
tolerance for computed double values throughout the hypervolume test
suite, fixing test failures on platforms with differing floating point
precision.

Closes esa#516
@jschueller

Copy link
Copy Markdown
Contributor Author

/cc @darioizzo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comparing floating point numbers in tests : comparing difference instead of using ==

1 participant