--- trunk/t/swish.t 2004/12/03 15:23:23 3 +++ trunk/t/swish.t 2004/12/03 19:35:02 4 @@ -2,7 +2,7 @@ use strict; -use Test::More tests => 5; +use Test::More tests => 6; use Test::Exception; use blib; @@ -27,3 +27,9 @@ ok($i->check_bin, "swish++ check"); diag $i->{'version'} || die; + +ok($i->index_document( 42 => 'meaning of life' ), "index 42"); + +# add one dummy document so that swish++ won't reject all words +# with index of just one document +ok($i->index_document( _dummy_ => '' ), "fillter");