From 188a19e67e8e4a9d2c7f0e596eb0820b80770d98 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 18 Jan 2017 16:59:26 +0100 Subject: [PATCH] LUCENE-7640: Fix test bug. --- .../lucene/codecs/lucene60/TestLucene60PointsFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene60/TestLucene60PointsFormat.java b/lucene/core/src/test/org/apache/lucene/codecs/lucene60/TestLucene60PointsFormat.java index 3a08bfa783c..4287273e2c0 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/lucene60/TestLucene60PointsFormat.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene60/TestLucene60PointsFormat.java @@ -256,8 +256,8 @@ public class TestLucene60PointsFormat extends BasePointsFormatTestCase { @Override public Relation compare(byte[] minPackedValue, byte[] maxPackedValue) { for (int dim = 0; dim < 2; ++dim) { - if (StringHelper.compare(3, uniquePointValue[0], 0, maxPackedValue, dim * 3) > 0 || - StringHelper.compare(3, uniquePointValue[0], 0, minPackedValue, dim * 3) < 0) { + if (StringHelper.compare(3, uniquePointValue[dim], 0, maxPackedValue, dim * 3) > 0 || + StringHelper.compare(3, uniquePointValue[dim], 0, minPackedValue, dim * 3) < 0) { return Relation.CELL_OUTSIDE_QUERY; } }