Added test for vc with regex and groupings
Change-Id: I9b5107d3fb3cdf63b2f628be281022149daa45a3
diff --git a/src/test/java/de/ids_mannheim/korap/query/test/collection/CollectionQueryProcessorTest.java b/src/test/java/de/ids_mannheim/korap/query/test/collection/CollectionQueryProcessorTest.java
index 24b3e72..08d2cda 100644
--- a/src/test/java/de/ids_mannheim/korap/query/test/collection/CollectionQueryProcessorTest.java
+++ b/src/test/java/de/ids_mannheim/korap/query/test/collection/CollectionQueryProcessorTest.java
@@ -605,6 +605,20 @@
assertEquals("match:leq", res.at("/collection/match").asText());
}
+ @Test
+ public void testRegexInGroup () throws JsonProcessingException, IOException {
+ collection = "corpusSigle = /HMP[0-9][0-9]/ and (textTypeArt=/.*Kommentar.*/ or textTypeArt=/.*Leitartikel.*/)";
+ qs.setQuery(query, ql);
+ qs.setCollection(collection);
+ res = mapper.readTree(qs.toJSON());
+ /*
+ assertEquals("koral:doc", res.at("/collection/@type").asText());
+ assertEquals("pubDate", res.at("/collection/key").asText());
+ assertEquals("2000-02", res.at("/collection/value").asText());
+ assertEquals("type:date", res.at("/collection/type").asText());
+ assertEquals("match:eq", res.at("/collection/match").asText());
+ */
+ }
@Test
public void testDateValidate () {