Added broken test for #184
diff --git a/src/test/java/PoliqarpPlusTreeJSONTest.java b/src/test/java/PoliqarpPlusTreeJSONTest.java
index 0e094b4..49bac86 100644
--- a/src/test/java/PoliqarpPlusTreeJSONTest.java
+++ b/src/test/java/PoliqarpPlusTreeJSONTest.java
@@ -513,6 +513,20 @@
}
+ @Test
+ public void testGroupRepetition() throws QueryException, JsonProcessingException, IOException {
+ query = "contains(<s>, (der){3})";
+ qs.setQuery(query, "poliqarpplus");
+ res = mapper.readTree(qs.toJSON());
+ assertEquals("korap:group", res.at("/query/@type").asText());
+ assertEquals("operation:position", res.at("/query/operation").asText());
+ assertEquals("korap:span", res.at("/query/operands/0/@type").asText());
+ assertEquals("s", res.at("/query/operands/0/key").asText());
+ assertEquals("korap:group", res.at("/query/operands/1/@type").asText());
+ assertEquals("operation:repetition", res.at("/query/operands/1/operation").asText());
+ };
+
+
// }
//
@@ -1488,4 +1502,4 @@
// map = ppt.getRequestMap().get("query").toString();
// assertEquals(simple5.replaceAll(" ", ""), map.replaceAll(" ", ""));
// }
-}
\ No newline at end of file
+}