#
# Part of the ht://Dig package   <http://www.htdig.org/>
# Copyright (c) 1999, 2000, 2001 The ht://Dig Group
# For copyright details, see the file COPYING in your distribution
# or the GNU General Public License version 2 or later
# <http://www.gnu.org/copyleft/gpl.html>
#
# $Id: t_trunc,v 1.11 2001/06/29 14:14:08 loic Exp $
#

. ./test_functions

export MIFLUZ_CONFIG ; MIFLUZ_CONFIG=${srcdir}/mifluz-dict.conf

count1=`head -1 $srcdir/dict.txt | ../htdb/mifluzload -z $VERBOSE test`
count2=`tail -1 $srcdir/dict.txt | ../htdb/mifluzload -z $VERBOSE test`

../htdb/htdb_stat -zW -d test -s index | grep '1	Number of unique keys in the tree' > /dev/null || { 
	../htdb/htdb_stat -zW -d test -s index >&2
	fail "Wrong number of keys"
}
