X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_rpn2solr.c;h=dfaad4a9a21e8d8695f6a5779e49559de5b2bb96;hp=c65eecfd8808632f71f567c8afc77c2cd5651efb;hb=2edad3fa067b30e1a8effde531a5fe75ddd899ce;hpb=5a82300afabd3820d847e9232cbefcca281ae4d8 diff --git a/test/test_rpn2solr.c b/test/test_rpn2solr.c index c65eecf..dfaad4a 100644 --- a/test/test_rpn2solr.c +++ b/test/test_rpn2solr.c @@ -54,6 +54,7 @@ static void tst1(void) { solr_transform_t ct = solr_transform_create(); + 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, "@not a b", "a AND NOT b")); @@ -63,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 @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\""));