mirror of https://github.com/apache/lucene.git
remove bad assertion
This commit is contained in:
parent
2a0814fc34
commit
0bb18cb057
|
@ -93,10 +93,6 @@ public class QueryUtils {
|
||||||
public static void checkUnequal(Query q1, Query q2) {
|
public static void checkUnequal(Query q1, Query q2) {
|
||||||
assertFalse(q1 + " equal to " + q2, q1.equals(q2));
|
assertFalse(q1 + " equal to " + q2, q1.equals(q2));
|
||||||
assertFalse(q2 + " equal to " + q1, q2.equals(q1));
|
assertFalse(q2 + " equal to " + q1, q2.equals(q1));
|
||||||
|
|
||||||
// possible this test can fail on a hash collision... if that
|
|
||||||
// happens, please change test to use a different example.
|
|
||||||
assertTrue(q1.hashCode() != q2.hashCode());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** deep check that explanations of a query 'score' correctly */
|
/** deep check that explanations of a query 'score' correctly */
|
||||||
|
|
Loading…
Reference in New Issue