From: Adam Dickmeiss Date: Thu, 12 Nov 2015 08:48:02 +0000 (+0100) Subject: Add test case for YAZ-861 YAZ-865 X-Git-Tag: v5.15.1~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2bfb0b990bbbe0f9c5ef9e78b094a2063bc45f33;p=yaz-moved-to-github.git Add test case for YAZ-861 YAZ-865 --- diff --git a/test/test_rpn2cql.c b/test/test_rpn2cql.c index 2dba3cf..411f176 100644 --- a/test/test_rpn2cql.c +++ b/test/test_rpn2cql.c @@ -89,6 +89,10 @@ static void tst1(void) cql_transform_define_pattern(ct, "index.foo", "1=bar"); YAZ_CHECK(compare(ct, "@attr 1=bar abc", "foo=abc")); + YAZ_CHECK(compare(ct, "@attr bib1 1=bar abc", "foo=abc")); + + cql_transform_define_pattern(ct, "index.author", "bib1 1=1003 4=2"); + YAZ_CHECK(compare(ct, "@attr 4=2 @attr bib1 1=1003 abc", "author=abc")); cql_transform_close(ct); }