/[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 46 by dpavlin, Fri Jan 6 01:40:04 2006 UTC revision 49 by dpavlin, Fri Jan 6 12:40:23 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 52;  use Test::More tests => 77;
7  use Test::Exception;  use Test::Exception;
8  use Data::Dumper;  use Data::Dumper;
9    
# Line 76  for ( 6 .. 10 ) { Line 76  for ( 6 .. 10 ) {
76          ok( my $id = $node->uri_to_id( $uri ), "uri_to_id $uri");          ok( my $id = $node->uri_to_id( $uri ), "uri_to_id $uri");
77          ok( $node->get_doc( $id ), "get_doc $id");          ok( $node->get_doc( $id ), "get_doc $id");
78          ok( $node->get_doc_by_uri( $uri ), "get_doc_by_uri $uri");          ok( $node->get_doc_by_uri( $uri ), "get_doc_by_uri $uri");
79          ok( my $k = $node->etch_doc_by_uri( $uri ), "etch_doc_by_uri $uri");          cmp_ok( $node->get_doc_attr( $id, '@uri' ), 'eq', $uri, "get_doc_attr $id");
80            cmp_ok( $node->get_doc_attr_by_uri( $uri, '@uri' ), 'eq', $uri, "get_doc_attr $id");
81            ok( my $k = $node->etch_doc( $id ), "etch_doc_by_uri $uri");
82            ok( my $k2 = $node->etch_doc_by_uri( $uri ), "etch_doc_by_uri $uri");
83            #diag Dumper($k, $k2);
84            ok( eq_hash( $k, $k2 ), "keywords");
85  }  }
86    
87    my $v;
88    ok($v = $node->name, "name: $v");
89    ok($v = $node->label, "label: $v");
90    ok($v = $node->doc_num, "doc_num: $v");
91    ok($v = $node->word_num, "word_num: $v");
92    ok($v = $node->size, "size: $v");
93    

Legend:
Removed from v.46  
changed lines
  Added in v.49

  ViewVC Help
Powered by ViewVC 1.1.26