From: Adam Dickmeiss Date: Tue, 7 Oct 2014 17:39:57 +0000 (+0200) Subject: Add test for empty term in RPN to Solr conversion X-Git-Tag: v5.4.3~2 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=f00caf7c3f8e70278f6ada47a1f5da79a8ba6858 Add test for empty term in RPN to Solr conversion --- diff --git a/test/test_rpn2solr.c b/test/test_rpn2solr.c index 72be5d7..62c2d51 100644 --- 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"));