From: Dennis Schafroth Date: Tue, 10 Sep 2013 21:32:12 +0000 (+0200) Subject: Add test to check that different indexes does not get merged X-Git-Tag: v4.2.66~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a883952f69d832ede3f390584703b2f330d6d3cd;p=yaz-moved-to-github.git Add test to check that different indexes does not get merged --- 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}"));