--- trunk/t/5_Node.t 2006/03/12 18:42:34 115 +++ trunk/t/5_Node.t 2006/05/08 20:47:48 130 @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 115; +use Test::More tests => 118; use Test::Exception; use Data::Dumper; @@ -32,7 +32,7 @@ SKIP: { -skip "no $test1_node node in Hyper Estraier", 96, unless($node->name); +skip "no $test1_node node in Hyper Estraier", 108, unless($node->name); my @res = ( -1, 200 ); @@ -156,6 +156,13 @@ ok(! $node->admins, 'no admins'); ok(! $node->guests, 'no guests'); +# test search without results + +ok($cond = new Search::Estraier::Condition, 'new cond'); +ok($cond->set_phrase('this_is_phrase_which_does_not_exits'), 'cond set_phrase'); + +ok($nres = $node->search( $cond, 0 ), 'search'); + SKIP: { skip "no $test2_node in Hyper Estraier, skipping set_link", 5 unless (my $test2_label = $node2->label);