mirror of https://github.com/apache/lucene.git
use intersections in this test, too
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026108 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c15e002d70
commit
c684042025
|
@ -45,9 +45,10 @@ public class TestMinimize extends LuceneTestCase {
|
||||||
a2 = BasicOperations.complement(a2);
|
a2 = BasicOperations.complement(a2);
|
||||||
|
|
||||||
// combine them in random ways
|
// combine them in random ways
|
||||||
switch(random.nextInt(3)) {
|
switch(random.nextInt(4)) {
|
||||||
case 0: return BasicOperations.concatenate(a1, a2);
|
case 0: return BasicOperations.concatenate(a1, a2);
|
||||||
case 1: return BasicOperations.union(a1, a2);
|
case 1: return BasicOperations.union(a1, a2);
|
||||||
|
case 2: return BasicOperations.intersection(a1, a2);
|
||||||
default: return BasicOperations.minus(a1, a2);
|
default: return BasicOperations.minus(a1, a2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue