Prox: Test added: WiP.

Change-Id: Iae2fa09238d82e30dc2130efd102560e5a48fb6b
diff --git a/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java b/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
index e3d1ea8..4fb0c03 100644
--- a/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
+++ b/src/test/java/de/ids_mannheim/korap/test/cosmas2/Cosmas2QueryProcessorTest.java
@@ -629,6 +629,37 @@
         assertEquals("Mond", res.at("/query/operands/1/operands/0/wrap/key")
                 .asText());
         assertFalse(res.at("/query/inOrder").asBoolean());
+        
+        // 15.01.24/FB
+        query = "Sonne /+w2 Mond"; // distence value missing.
+        qs.setQuery(query, "cosmas2");
+        res = mapper.readTree(qs.toJSON());
+        
+        System.out.printf("query '%s' produces an error: '%s'.\n", query, res.get("errors") != null ? "true" : "false");
+        
+        assertTrue(res.get("errors") == null);
+        
+        System.out.printf("query '%s' produces: '%s'.\n", query, res.toPrettyString());
+        System.out.printf("query context: '%s'.\n", res.get("@context").asText());
+        
+        System.out.printf("query errors: '%s'.\n", res.get("errors").asText());
+        System.out.printf("query errors: '%s'.\n", res.get("errors").toString());
+        
+        
+        
+        
+        /*
+        assertEquals("cosmas:distance", res.at("/query/distances/0/@type")
+                .asText());
+        assertEquals("w", res.at("/query/distances/0/key").asText());
+        assertEquals(0, res.at("/query/distances/0/boundary/min").asInt());
+        assertEquals(4, res.at("/query/distances/0/boundary/max").asInt());
+        assertEquals("Sonne", res.at("/query/operands/0/operands/0/wrap/key")
+                .asText());
+        assertEquals("Mond", res.at("/query/operands/1/operands/0/wrap/key")
+                .asText());
+        assertFalse(res.at("/query/inOrder").asBoolean());
+        */
     }