bugfix (mixed var references and direct declarations)
diff --git a/src/test/java/AqlTreeTest.java b/src/test/java/AqlTreeTest.java
index a2412bb..a65d2b1 100644
--- a/src/test/java/AqlTreeTest.java
+++ b/src/test/java/AqlTreeTest.java
@@ -167,6 +167,20 @@
res = mapper.readTree(qs.toJSON());
assertEquals(true, res.at("/query/operands/1/key").isMissingNode());
assertEquals("np", res.at("/query/operands/0/key").asText());
+
+ query = "cat=/NP/ & cat=/PP/ > #1";
+ qs.setQuery(query, "annis");
+ res = mapper.readTree(qs.toJSON());
+ assertEquals("korap:group", res.at("/query/@type").asText());
+ assertEquals("operation:relation", res.at("/query/operation").asText());
+ assertEquals("korap:span", res.at("/query/operands/0/@type").asText());
+ assertEquals("PP", res.at("/query/operands/0/key").asText());
+ assertEquals("korap:span", res.at("/query/operands/1/@type").asText());
+ assertEquals("NP", res.at("/query/operands/1/key").asText());
+ assertEquals(true, res.at("/query/operands/2").isMissingNode());
+ assertEquals("korap:relation", res.at("/query/relation/@type").asText());
+ assertEquals("korap:term", res.at("/query/relation/wrap/@type").asText());
+ assertEquals("c", res.at("/query/relation/wrap/layer").asText());
}
@Test
@@ -294,9 +308,11 @@
assertEquals(true, res.at("/query/relation/boundary/max").isMissingNode());
}
- //
-// @Test
-// public void testMultipleDominance() throws QueryException {
+
+ @Test
+ public void testMultipleDominance() throws QueryException {
+
+ }
// query = "cat=\"CP\" & cat=\"VP\" & cat=\"NP\" & #1 > #2 > #3";
// String dom1 =
// "{@type=korap:group, operation=operation:relation, operands=[" +
diff --git a/src/test/java/CosmasTreeTest.java b/src/test/java/CosmasTreeTest.java
index 308f777..fe6370e 100644
--- a/src/test/java/CosmasTreeTest.java
+++ b/src/test/java/CosmasTreeTest.java
@@ -17,7 +17,6 @@
* @author Joachim Bingel (bingel@ids-mannheim.de)
* @version 1.0
*/
-
public class CosmasTreeTest {