X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_ccl.c;h=76d76baed84042e8d1a6ac0319198943f2c02e12;hp=72370e38d32450694fe34d589fc46b25360bf2c6;hb=26e1223d0b98f56cf288fb8fdf1acaa15047db2b;hpb=835fe1fa5d34428ba2803cd4a2b1a9b9aec48ab0 diff --git a/test/test_ccl.c b/test/test_ccl.c index 72370e3..76d76ba 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -260,12 +260,24 @@ void tst1(int pass) YAZ_CHECK(tst_ccl_query(bibset, "title=.", "@attr 5=102 @attr 1=/my/title \\\\. ")); - YAZ_CHECK(tst_ccl_query(bibset, "title=\\.", + YAZ_CHECK(tst_ccl_query(bibset, "title=.", "@attr 5=102 @attr 1=/my/title \\\\. ")); YAZ_CHECK(tst_ccl_query(bibset, "title=\".\"", "@attr 5=102 @attr 1=/my/title \\\\. ")); + YAZ_CHECK(tst_ccl_query(bibset, "title=?\\?", + "@attr 5=102 @attr 1=/my/title .*\\\\? ")); + + YAZ_CHECK(tst_ccl_query(bibset, "title=\"?\\?\"", + "@attr 5=102 @attr 1=/my/title \\\\?\\\\? ")); + + YAZ_CHECK(tst_ccl_query(bibset, "title=\\\\", + "@attr 5=102 @attr 1=/my/title \\\\\\\\ ")); + + YAZ_CHECK(tst_ccl_query(bibset, "\\\\", + "@attr 4=2 @attr 1=1016 \\\\ ")); + YAZ_CHECK(tst_ccl_query(bibset, "comb=a", "@or @attr 4=2 @attr 1=1016 a " "@attr 1=/my/title a "));