extended date support (month+day) for collection queries
diff --git a/src/test/java/CollectionQueryTreeTest.java b/src/test/java/CollectionQueryTreeTest.java
index a367c26..aef9d49 100644
--- a/src/test/java/CollectionQueryTreeTest.java
+++ b/src/test/java/CollectionQueryTreeTest.java
@@ -215,6 +215,26 @@
cqt.process(query);
map = cqt.getRequestMap().toString();
assertEquals(expected.replaceAll(" ", ""), map.replaceAll(" ", ""));
+
+ query = "pubDate>=1990-05";
+ expected =
+ "{@type=korap:filter, filter=" +
+ "{@type=korap:doc, key=pubDate, value=1990-05, match=match:geq}" +
+ "}";
+ cqt = new CollectionQueryTree();
+ cqt.process(query);
+ map = cqt.getRequestMap().toString();
+ assertEquals(expected.replaceAll(" ", ""), map.replaceAll(" ", ""));
+
+ query = "pubDate>=1990-05-01";
+ expected =
+ "{@type=korap:filter, filter=" +
+ "{@type=korap:doc, key=pubDate, value=1990-05-01, match=match:geq}" +
+ "}";
+ cqt = new CollectionQueryTree();
+ cqt.process(query);
+ map = cqt.getRequestMap().toString();
+ assertEquals(expected.replaceAll(" ", ""), map.replaceAll(" ", ""));
}
@Test