Add two CQL sortby tests
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 May 2011 13:15:32 +0000 (15:15 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 May 2011 13:15:32 +0000 (15:15 +0200)
test/cql/13.1.err [new file with mode: 0644]
test/cql/13.1.out [new file with mode: 0644]
test/cql/13.2.err [new file with mode: 0644]
test/cql/13.2.out [new file with mode: 0644]
test/cql2xcqlsample

diff --git a/test/cql/13.1.err b/test/cql/13.1.err
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/cql/13.1.out b/test/cql/13.1.out
new file mode 100644 (file)
index 0000000..7752227
--- /dev/null
@@ -0,0 +1,12 @@
+<searchClause>
+  <index>cql.serverChoice</index>
+  <relation>
+    <value>=</value>
+  </relation>
+  <term>a</term>
+  <sortKeys>
+    <key>
+      <index>title</index>
+    </key>
+  </sortKeys>
+</searchClause>
diff --git a/test/cql/13.2.err b/test/cql/13.2.err
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/cql/13.2.out b/test/cql/13.2.out
new file mode 100644 (file)
index 0000000..21c212f
--- /dev/null
@@ -0,0 +1,36 @@
+<triple>
+  <boolean>
+    <value>or</value>
+  </boolean>
+  <leftOperand>
+    <searchClause>
+      <index>cql.serverChoice</index>
+      <relation>
+        <value>=</value>
+      </relation>
+      <term>a</term>
+    </searchClause>
+  </leftOperand>
+  <rightOperand>
+    <searchClause>
+      <index>cql.serverChoice</index>
+      <relation>
+        <value>=</value>
+      </relation>
+      <term>b</term>
+    </searchClause>
+  </rightOperand>
+  <sortKeys>
+    <key>
+      <index>title</index>
+        <modifiers>
+          <modifier>
+            <type>ascending</type>
+          </modifier>
+        </modifiers>
+    </key>
+    <key>
+      <index>author</index>
+    </key>
+  </sortKeys>
+</triple>
index 9bc2819..4fb0ab4 100644 (file)
@@ -112,3 +112,7 @@ dc.title a b c and d
 # free-form term (Syntax error)
 a b.c
 a and
+
+# sortby
+a sortby title
+a or b sortby title/ascending author