Skip to content

Commit

Permalink
Fix more tests relying on float order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvodita committed Apr 4, 2024
1 parent 573712c commit e18ff28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void testFloatAssociationRandom() throws Exception {
// test getAllDims and getTopDims
List<FacetResult> topDims = facets.getTopDims(10, 10);
List<FacetResult> allDims = facets.getAllDims(10);
assertEquals(topDims, allDims);
assertFloatFacetResultsEqual(topDims, allDims);

// MAX:
facets =
Expand Down Expand Up @@ -676,7 +676,7 @@ private void assertFloatFacetResultsEqual(List<FacetResult> expected, List<Facet

assertEquals(expectedResult.dim, actualResult.dim);
assertArrayEquals(expectedResult.path, actualResult.path);
assertEquals((float) expectedResult.value, (float) actualResult.value, 1e-1);
assertEquals((float) expectedResult.value, (float) actualResult.value, 2e-1);
assertEquals(expectedResult.childCount, actualResult.childCount);
}
}
Expand Down

0 comments on commit e18ff28

Please sign in to comment.