projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zoomsh: increase max size of command+args
[yaz-moved-to-github.git]
/
test
/
test_cql2ccl.c
diff --git
a/test/test_cql2ccl.c
b/test/test_cql2ccl.c
index
482e47a
..
c050f7e
100644
(file)
--- a/
test/test_cql2ccl.c
+++ b/
test/test_cql2ccl.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@
-141,6
+141,8
@@
static void tst(void)
YAZ_CHECK(tst_query("title = \"x y\"", "title=\"x y\""));
YAZ_CHECK(tst_query("title = x y", "title=\"x\" \"y\""));
YAZ_CHECK(tst_query("title = \"x y\"", "title=\"x y\""));
YAZ_CHECK(tst_query("title = x y", "title=\"x\" \"y\""));
+ YAZ_CHECK(tst_query("title = x y z", "title=\"x\" \"y\" \"z\""));
+
YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs",
"(dc.title=\"encyclopedia\") % (\"dinosaurs\")"));
YAZ_CHECK(tst_query("dc.title=encyclopedia prox/distance<=3 dinosaurs",
YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs",
"(dc.title=\"encyclopedia\") % (\"dinosaurs\")"));
YAZ_CHECK(tst_query("dc.title=encyclopedia prox/distance<=3 dinosaurs",
@@
-178,6
+180,8
@@
static void tst(void)
"title,,1,0,lowValue"));
YAZ_CHECK(tst_query_s("a sortby title/missingHigh", "\"a\"",
"title,,1,0,highValue"));
"title,,1,0,lowValue"));
YAZ_CHECK(tst_query_s("a sortby title/missingHigh", "\"a\"",
"title,,1,0,highValue"));
+ YAZ_CHECK(tst_query_s("a sortby title/sort.missingHigh", "\"a\"",
+ "title,,1,0,highValue"));
YAZ_CHECK(tst_query_s("a sortby title/bogus", "\"a\"", 0));
YAZ_CHECK(tst_query_s("a sortby dc.year dc.author", "\"a\"",
YAZ_CHECK(tst_query_s("a sortby title/bogus", "\"a\"", 0));
YAZ_CHECK(tst_query_s("a sortby dc.year dc.author", "\"a\"",