Fixed test for t distances
Change-Id: Ic1603f68364bdb164e1d2c9a411a0e58e9012da2
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java b/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
index 06c76d7..17d9bf3 100644
--- a/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
+++ b/src/test/java/de/ids_mannheim/korap/index/TestElementDistanceIndex.java
@@ -51,7 +51,7 @@
fd.addTV(
"tokens",
"ecebdc",
- "[(0-1)s:e|_1$<i>0<i>1|<>:base/s:t$<b>64<i>0<i>6<i>0<i>6<b>0|<>:s$<b>64<i>0<i>2<i>1<b>0]"
+ "[(0-1)s:e|_1$<i>0<i>1|<>:base/s:t$<b>64<i>0<i>6<i>6<b>0|<>:s$<b>64<i>0<i>2<i>1<b>0]"
+ "[(1-2)s:c|s:b|_2$<i>1<i>2|<>:s$<b>64<i>1<i>2<i>2<b>0]"
+ "[(2-3)s:e|_3$<i>2<i>3|<>:s$<b>64<i>2<i>3<i>3<b>0]"
+ "[(3-4)s:b|_4$<i>3<i>4|<>:s$<b>64<i>3<i>4<i>4<b>0]"
@@ -242,6 +242,7 @@
kr = ki.search(sqwi.toQuery(), (short) 10);
assertEquals(1, kr.getTotalResults()); // Is 1 correct or should it not be ordered?
+ assertEquals("[ec]ebdc", kr.getMatch(0).getSnippetBrackets());
};