Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 4 failing tests in .NET Framework/x86 #338

Merged
merged 4 commits into from
Sep 14, 2020

Conversation

NightOwl888
Copy link
Contributor

This fixes tests that are failing due to floating point precision issues on x86 when optimized. Disabling optimizations on specific methods fixes the following tests:

  • Lucene.Net.Sandbox.TestSlowFuzzyQuery::TestTokenLengthOpt()
  • Lucene.Net.Search.TestSearchAfter::TestQueries()
  • Lucene.Net.Search.TestTopDocsMerge::TestSort_1()
  • Lucene.Net.Search.TestTopDocsMerge::TestSort_2()

as recorded in #269.

…n .NET Framework because of float comparison failures on x86 in Release mode. Fixes TestSearchAfter::TestQueries(), TestTopDocsMerge::TestSort_1(), TestTopDocsMerge::TestSort_2().
…tions on .NET Framework because of float comparison failures on x86 in Release mode. Fixes TestTokenLengthOpt().
…ept() method on .NET Framework because of float comparison failures on x86 in Release mode. Fixes TestTokenLengthOpt().
@NightOwl888 NightOwl888 added this to the 4.8.0-beta00012 milestone Sep 14, 2020
@NightOwl888 NightOwl888 merged commit 2cd99fc into apache:master Sep 14, 2020
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.

1 participant