projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174b035
)
Add test for empty term in RPN to Solr conversion
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 7 Oct 2014 17:39:57 +0000
(19:39 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 7 Oct 2014 17:39:57 +0000
(19:39 +0200)
test/test_rpn2solr.c
patch
|
blob
|
history
diff --git
a/test/test_rpn2solr.c
b/test/test_rpn2solr.c
index
72be5d7
..
62c2d51
100644
(file)
--- a/
test/test_rpn2solr.c
+++ b/
test/test_rpn2solr.c
@@
-57,6
+57,7
@@
static void tst1(void)
YAZ_CHECK(compare(ct, "@or a @and b c", "a OR (b AND c)"));
YAZ_CHECK(compare(ct, "abc", "abc"));
YAZ_CHECK(compare(ct, "\"a b c\"", "\"a b c\""));
+ YAZ_CHECK(compare(ct, "\"\"", "\"\""));
YAZ_CHECK(compare(ct, "@not a b", "a AND NOT b"));
YAZ_CHECK(compare(ct, "@and @or a b c", "(a OR b) AND c"));
YAZ_CHECK(compare(ct, "@and a b", "a AND b"));