From 1096988cbba8ece70c1ab3c964a5f1e2b1759773 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Nov 2005 08:09:44 +0000 Subject: [PATCH] Added test for bug #431 --- test/xpath/assembled.abs | 3 +++ test/xpath/xpath6.c | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/test/xpath/assembled.abs b/test/xpath/assembled.abs index 2c06889..ad7f8c5 100644 --- a/test/xpath/assembled.abs +++ b/test/xpath/assembled.abs @@ -5,3 +5,6 @@ xpath enable xelm /assembled/basic/names/CASno !:w,!:p,!:s,NAL-call-number:p,Title-key:s xelm /*/orgs body-of-text:w xelm //something Title:w + +# Bib-level=1021 +xelm /assembled/@org Bib-level:w,Bib-level:w diff --git a/test/xpath/xpath6.c b/test/xpath/xpath6.c index 8313d39..7eac00e 100644 --- a/test/xpath/xpath6.c +++ b/test/xpath/xpath6.c @@ -1,4 +1,4 @@ -/* $Id: xpath6.c,v 1.5 2005-09-13 11:51:11 adam Exp $ +/* $Id: xpath6.c,v 1.6 2005-11-09 08:09:44 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -45,7 +45,6 @@ int main(int argc, char **argv) } zebra_end_trans(zh); zebra_commit(zh); - do_query(__LINE__, zh, "@attr 5=1 @attr 6=3 @attr 4=1 @attr 1=/assembled/basic/names/CASno \"367-93-1\"", 2); @@ -64,5 +63,14 @@ int main(int argc, char **argv) /* bug #317 */ do_query(__LINE__, zh, "@attr 1=1010 46", 2); + /* bug #431 */ + do_query(__LINE__, zh, "@attr 1=1021 0", 1); + + /* bug #431 */ + do_query(__LINE__, zh, "@attr 1=1021 46", 1); + + /* bug #431 */ + do_query(__LINE__, zh, "@attr 1=1021 1", 0); + return close_down(zh, zs, 0); } -- 1.7.10.4