From 243bd12df5314a467bfb29db4b23b130d74d6750 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 8 Nov 2005 10:46:19 +0000 Subject: [PATCH] Test case for duplicate keys in x-path indexing --- test/xpath/assembled.abs | 4 ++++ test/xpath/test6.sh | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/xpath/assembled.abs b/test/xpath/assembled.abs index 72e6c26..8b5acb5 100644 --- a/test/xpath/assembled.abs +++ b/test/xpath/assembled.abs @@ -2,4 +2,8 @@ attset bib1.att xpath enable +# NAL-call-number=18, Title-key=33 xelm /assembled/basic/names/CASno !:w,!:p,!:s,NAL-call-number:p,Title-key:s + +# Bib-level=1021 +xelm /assembled/@org Bib-level:w,Bib-level:w diff --git a/test/xpath/test6.sh b/test/xpath/test6.sh index 49acee3..0c9f5f0 100755 --- a/test/xpath/test6.sh +++ b/test/xpath/test6.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test6.sh,v 1.1.2.1 2004-12-16 19:11:41 heikki Exp $ +# $Id: test6.sh,v 1.1.2.2 2005-11-08 10:46:19 adam Exp $ pp=${srcdir:-"."} @@ -30,6 +30,8 @@ test -f zebrasrv.pid || exit 2 ../api/testclient unix:socket '@and @attr 1=/assembled/orgs/org 46 @attr 5=1 @attr 6=3 @attr 4=1 @attr 1=/assembled/basic/names/CASno 367-93-1' >$TMP.5 +../api/testclient unix:socket '@attr 1=1021 46' >$TMP.6 + echo 'Killing server' >>$LOG kill `cat zebrasrv.pid` || exit 3 sleep 1 @@ -45,6 +47,8 @@ echo 'Checking that result 4 count is 1' >>$LOG grep "^Result count: 1$" $TMP.4 >/dev/null || exit 7 echo 'Checking that result 5 count is 2' >>$LOG grep "^Result count: 2$" $TMP.5 >/dev/null || exit 8 +echo 'Checking that result 6 count is 1' >>$LOG +grep "^Result count: 1$" $TMP.6 >/dev/null || exit 9 echo 'Test OK' >>$LOG exit 0 -- 1.7.10.4