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:
1b750a9
)
Fix test
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 23 Sep 2013 07:33:52 +0000
(09:33 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 23 Sep 2013 07:33:52 +0000
(09:33 +0200)
test/test_rpn2solr.c
patch
|
blob
|
history
diff --git
a/test/test_rpn2solr.c
b/test/test_rpn2solr.c
index
e3c3add
..
dfaad4a
100644
(file)
--- a/
test/test_rpn2solr.c
+++ b/
test/test_rpn2solr.c
@@
-64,7
+64,7
@@
static void tst1(void)
YAZ_CHECK(compare(ct, "@or a @and b c", "a OR (b AND c)"));
YAZ_CHECK(compare(ct, "@or @and a b @and c d", "(a AND b) OR (c AND d)"));
YAZ_CHECK(compare(ct, "@or @or a b @or c d", "(a OR b) OR (c OR d)"));
YAZ_CHECK(compare(ct, "@or a @and b c", "a OR (b AND c)"));
YAZ_CHECK(compare(ct, "@or @and a b @and c d", "(a AND b) OR (c AND d)"));
YAZ_CHECK(compare(ct, "@or @or a b @or c d", "(a OR b) OR (c OR d)"));
- YAZ_CHECK(compare(ct, "@or @or @or a b @or c d @or e f", "(a OR b) OR (c OR d)"));
+ YAZ_CHECK(compare(ct, "@or @or @or a b @or c d @or e f", "((a OR b) OR (c OR d)) OR (e OR f)"));
YAZ_CHECK(compare(ct, "@and @and a b @and c d", "(a AND b) AND (c AND d)"));
YAZ_CHECK(compare(ct, "@attr 1=field abc", "field:abc"));
YAZ_CHECK(compare(ct, "@attr 1=field \"a b c\"", "field:\"a b c\""));
YAZ_CHECK(compare(ct, "@and @and a b @and c d", "(a AND b) AND (c AND d)"));
YAZ_CHECK(compare(ct, "@attr 1=field abc", "field:abc"));
YAZ_CHECK(compare(ct, "@attr 1=field \"a b c\"", "field:\"a b c\""));