Updated the Focusspan test.
Change-Id: I0000000000000000000000000000000000000000
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestFocusIndex.java b/src/test/java/de/ids_mannheim/korap/index/TestFocusIndex.java
index 297783d..c08dcae 100644
--- a/src/test/java/de/ids_mannheim/korap/index/TestFocusIndex.java
+++ b/src/test/java/de/ids_mannheim/korap/index/TestFocusIndex.java
@@ -1,5 +1,8 @@
package de.ids_mannheim.korap.index;
+
+import static org.junit.Assert.assertEquals;
+
import java.io.IOException;
import org.apache.lucene.index.Term;
@@ -40,8 +43,12 @@
kr = ki.search(snq, (short) 20);
- for (Match m : kr.getMatches()) {
- System.out.println(m.getStartPos() + " " + m.getEndPos());
- }
+ assertEquals(0, kr.getMatch(0).getStartPos());
+ assertEquals(2, kr.getMatch(0).getEndPos());
+ assertEquals(5, kr.getMatch(1).getStartPos());
+ assertEquals(9, kr.getMatch(1).getEndPos());
+ // for (Match m : kr.getMatches()) {
+ // System.out.println(m.getStartPos() + " " + m.getEndPos());
+ // }
}
}