From f00caf7c3f8e70278f6ada47a1f5da79a8ba6858 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 7 Oct 2014 19:39:57 +0200 Subject: [PATCH] Add test for empty term in RPN to Solr conversion --- test/test_rpn2solr.c | 1 + 1 file changed, 1 insertion(+) 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")); -- 1.7.10.4