From: Adam Dickmeiss Date: Sun, 6 Jan 2008 17:37:13 +0000 (+0000) Subject: Added CQL free-form term tests. X-Git-Tag: YAZ.3.0.20~17 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=3db79025b276f232a4ab672f1ba996a0ccc64608;p=yaz-moved-to-github.git Added CQL free-form term tests. --- diff --git a/test/cql/11.1.err b/test/cql/11.1.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.1.out b/test/cql/11.1.out new file mode 100644 index 0000000..a8ff186 --- /dev/null +++ b/test/cql/11.1.out @@ -0,0 +1,8 @@ + + cql.serverChoice + + = + + a + b + diff --git a/test/cql/11.2.err b/test/cql/11.2.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.2.out b/test/cql/11.2.out new file mode 100644 index 0000000..58fd9bd --- /dev/null +++ b/test/cql/11.2.out @@ -0,0 +1,9 @@ + + cql.serverChoice + + = + + a + c + b + diff --git a/test/cql/11.3.err b/test/cql/11.3.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.3.out b/test/cql/11.3.out new file mode 100644 index 0000000..3a66149 --- /dev/null +++ b/test/cql/11.3.out @@ -0,0 +1,8 @@ + + cql.serverChoice + + = + + a.b + c + diff --git a/test/cql/11.4.err b/test/cql/11.4.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.4.out b/test/cql/11.4.out new file mode 100644 index 0000000..37dbf3f --- /dev/null +++ b/test/cql/11.4.out @@ -0,0 +1,9 @@ + + cql.serverChoice + + = + + and + c + b + diff --git a/test/cql/11.5.err b/test/cql/11.5.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.5.out b/test/cql/11.5.out new file mode 100644 index 0000000..50f2571 --- /dev/null +++ b/test/cql/11.5.out @@ -0,0 +1,8 @@ + + cql.serverChoice + + = + + all + a + diff --git a/test/cql/11.6.err b/test/cql/11.6.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.6.out b/test/cql/11.6.out new file mode 100644 index 0000000..42e46f9 --- /dev/null +++ b/test/cql/11.6.out @@ -0,0 +1,7 @@ + + a + + any + + b + diff --git a/test/cql/11.7.err b/test/cql/11.7.err new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/11.7.out b/test/cql/11.7.out new file mode 100644 index 0000000..6073292 --- /dev/null +++ b/test/cql/11.7.out @@ -0,0 +1,26 @@ + + + and + + + + cql.serverChoice + + = + + dc.title + c + b + a + + + + + cql.serverChoice + + = + + d + + + diff --git a/test/cql/12.1.err b/test/cql/12.1.err new file mode 100644 index 0000000..f83d884 --- /dev/null +++ b/test/cql/12.1.err @@ -0,0 +1 @@ +Syntax error diff --git a/test/cql/12.1.out b/test/cql/12.1.out new file mode 100644 index 0000000..e69de29 diff --git a/test/cql/12.2.err b/test/cql/12.2.err new file mode 100644 index 0000000..f83d884 --- /dev/null +++ b/test/cql/12.2.err @@ -0,0 +1 @@ +Syntax error diff --git a/test/cql/12.2.out b/test/cql/12.2.out new file mode 100644 index 0000000..e69de29 diff --git a/test/cqlsample b/test/cqlsample index f08ff47..5b5b469 100644 --- a/test/cqlsample +++ b/test/cqlsample @@ -1,4 +1,4 @@ -# $Id: cqlsample,v 1.3 2008-01-06 13:08:09 adam Exp $ +# $Id: cqlsample,v 1.4 2008-01-06 17:37:13 adam Exp $ # CQL queries for testing. # from http://www.loc.gov/z3950/agency/zing/cql/sample-queries.html # Simple Term @@ -101,4 +101,15 @@ missingParen any fish) title = ("illegal parentheses") > illegal="urn:missingQuery" - +# free-form term OK) +a b +a b c +a.b c +and b c +all a +a any b +dc.title a b c and d + +# free-form term (Syntax error) +a b.c +a and