More tests
authorJakub Skoczen <jakub@indexdata.dk>
Sun, 16 Mar 2014 09:53:01 +0000 (10:53 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Sun, 16 Mar 2014 09:53:01 +0000 (10:53 +0100)
There's a corner case in the CQL spec which specifies that
escape character should be retained ONLY for '^?*' in quoted
strings.

This means however that spurious escapes will be present in the non-quoted
terms:

  t\*er\m -> t\*er\m
  "t\*er\m" -> t\*erm

src/test/resources/regression/12/02.cql [new file with mode: 0644]
src/test/resources/regression/12/02.xcql [new file with mode: 0644]

diff --git a/src/test/resources/regression/12/02.cql b/src/test/resources/regression/12/02.cql
new file mode 100644 (file)
index 0000000..e48f360
--- /dev/null
@@ -0,0 +1 @@
+te\rm\*\?\^
diff --git a/src/test/resources/regression/12/02.xcql b/src/test/resources/regression/12/02.xcql
new file mode 100644 (file)
index 0000000..b826cba
--- /dev/null
@@ -0,0 +1,7 @@
+<searchClause>
+  <index>cql.serverChoice</index>
+  <relation>
+    <value>=</value>
+  </relation>
+  <term>te\rm\*\?\^</term>
+</searchClause>