From 80b471b0cce1bd212ee794d5b3683cce11113a4b Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Tue, 3 Feb 2009 21:07:11 +0000 Subject: [PATCH] one Math.max too much, sorry git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@740444 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/lucene/search/trie/TestTrieRangeQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/queries/src/test/org/apache/lucene/search/trie/TestTrieRangeQuery.java b/contrib/queries/src/test/org/apache/lucene/search/trie/TestTrieRangeQuery.java index 0ec6b42b079..e4da7319888 100644 --- a/contrib/queries/src/test/org/apache/lucene/search/trie/TestTrieRangeQuery.java +++ b/contrib/queries/src/test/org/apache/lucene/search/trie/TestTrieRangeQuery.java @@ -196,7 +196,7 @@ public class TestTrieRangeQuery extends LuceneTestCase // test inclusive range TrieRangeQuery tq=new TrieRangeQuery(field, new Long(lower), new Long(upper), true, true, variant); TopDocs tTopDocs = searcher.search(tq, 1); - assertEquals("Returned count of range query must be equal to inclusive range length", tTopDocs.totalHits, Math.max(upper-lower+1, 0) ); + assertEquals("Returned count of range query must be equal to inclusive range length", tTopDocs.totalHits, upper-lower+1 ); // test exclusive range tq=new TrieRangeQuery(field, new Long(lower), new Long(upper), false, false, variant); tTopDocs = searcher.search(tq, 1);