From a883952f69d832ede3f390584703b2f330d6d3cd Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 10 Sep 2013 23:32:12 +0200 Subject: [PATCH] Add test to check that different indexes does not get merged --- test/test_rpn2solr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_rpn2solr.c b/test/test_rpn2solr.c index e60d9c0..3be80c7 100644 --- a/test/test_rpn2solr.c +++ b/test/test_rpn2solr.c @@ -125,6 +125,7 @@ static void tst2(void) YAZ_CHECK(compare(ct, "@attr 1=30 @attr 2=5 1980", "dc.date:{1980 TO *]")); // YAZ_CHECK(compare(ct, "@attr 1=30 @attr 2=5 1980", "dc.date:[* TO 1980]")); YAZ_CHECK(compare(ct, "@and @attr 1=30 @attr 2=2 234 @attr 1=30 @attr 2=4 1990", "dc.date:[* TO 234] AND dc.date:[1990 TO *]")); + YAZ_CHECK(compare(ct, "@and @attr 1=30 @attr 2=5 234 @attr 1=4 @attr 2=2 1990", "dc.date:[* TO 234] AND dc.title:[1990 TO *]")); YAZ_CHECK(compare(ct, "@and @attr 1=30 @attr 2=5 234 @attr 1=30 @attr 2=2 1990", "dc.date:{234 TO 1990]")); YAZ_CHECK(compare(ct, "@and @attr 1=30 @attr 2=4 234 @attr 1=30 @attr 2=2 1990", "dc.date:[234 TO 1990]")); YAZ_CHECK(compare(ct, "@and @attr 1=30 @attr 2=5 234 @attr 1=30 @attr 2=1 1990", "dc.date:{234 TO 1990}")); -- 1.7.10.4