--- trunk/t/5_Node.t 2006/01/16 21:47:21 79 +++ trunk/t/5_Node.t 2006/01/26 01:53:58 91 @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 97; +use Test::More tests => 98; use Test::Exception; use Data::Dumper; @@ -90,11 +90,11 @@ cmp_ok($node->cond_to_query( $cond ), 'eq' , 'phrase=girl&attr1=%40title%20STRINC%20Material&order=%40uri%20ASCD&max='.$max.'&wwidth=480&hwidth=96&awidth=96', 'cond_to_query'); -ok( my $nrec = $node->search( $cond, 0 ), 'search'); +ok( my $nres = $node->search( $cond, 0 ), 'search'); -isa_ok( $nrec, 'Search::Estraier::NodeResult' ); +isa_ok( $nres, 'Search::Estraier::NodeResult' ); -cmp_ok($nrec->doc_num, '==', $max, "doc_num = $max"); +cmp_ok($nres->doc_num, '==', $max, "doc_num = $max"); for ( 6 .. 10 ) { my $uri = 'test' . $_; @@ -109,6 +109,9 @@ ok( eq_hash( $k, $k2 ), "keywords"); } +ok(my $hints = $nres->hints, 'hints'); +diag Dumper($hints); + ok($node->_set_info, "refresh _set_info"); my $v;