/[Search-Estraier]/trunk/t/5_Node.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/5_Node.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 79 by dpavlin, Mon Jan 16 21:47:21 2006 UTC revision 91 by dpavlin, Thu Jan 26 01:53:58 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 97;  use Test::More tests => 98;
7  use Test::Exception;  use Test::Exception;
8  use Data::Dumper;  use Data::Dumper;
9    
# Line 90  ok($cond->add_attr('@title STRINC Materi Line 90  ok($cond->add_attr('@title STRINC Materi
90    
91  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');  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');
92    
93  ok( my $nrec = $node->search( $cond, 0 ), 'search');  ok( my $nres = $node->search( $cond, 0 ), 'search');
94    
95  isa_ok( $nrec, 'Search::Estraier::NodeResult' );  isa_ok( $nres, 'Search::Estraier::NodeResult' );
96    
97  cmp_ok($nrec->doc_num, '==', $max, "doc_num = $max");  cmp_ok($nres->doc_num, '==', $max, "doc_num = $max");
98    
99  for ( 6 .. 10 ) {  for ( 6 .. 10 ) {
100          my $uri = 'test' . $_;          my $uri = 'test' . $_;
# Line 109  for ( 6 .. 10 ) { Line 109  for ( 6 .. 10 ) {
109          ok( eq_hash( $k, $k2 ), "keywords");          ok( eq_hash( $k, $k2 ), "keywords");
110  }  }
111    
112    ok(my $hints = $nres->hints, 'hints');
113    diag Dumper($hints);
114    
115  ok($node->_set_info, "refresh _set_info");  ok($node->_set_info, "refresh _set_info");
116    
117  my $v;  my $v;

Legend:
Removed from v.79  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.26