File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lucene/core/src/test/org/apache/lucene/internal/vectorization Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -306,10 +306,11 @@ public void testMinMaxScalarQuantize() {
306306 }
307307
308308 private void assertFloatReturningProviders (ToDoubleFunction <VectorUtilSupport > func ) {
309- assertEquals (
310- func .applyAsDouble (LUCENE_PROVIDER .getVectorUtilSupport ()),
311- func .applyAsDouble (PANAMA_PROVIDER .getVectorUtilSupport ()),
312- delta );
309+ double luceneProviderResults = func .applyAsDouble (LUCENE_PROVIDER .getVectorUtilSupport ());
310+ double panamaProviderResults = func .applyAsDouble (PANAMA_PROVIDER .getVectorUtilSupport ());
311+ double delta =
312+ Math .max (this .delta , this .delta * Math .max (luceneProviderResults , panamaProviderResults ));
313+ assertEquals (luceneProviderResults , panamaProviderResults , delta );
313314 }
314315
315316 private void assertIntReturningProviders (ToIntFunction <VectorUtilSupport > func ) {
You can’t perform that action at this time.
0 commit comments