--- trunk/t/5_Node.t 2006/01/06 00:04:28 43 +++ trunk/t/5_Node.t 2006/01/06 01:36:09 45 @@ -3,13 +3,13 @@ use strict; use blib; -use Test::More tests => 40; +use Test::More tests => 46; use Test::Exception; use Data::Dumper; BEGIN { use_ok('Search::Estraier') }; -my $debug = 0; +my $debug = 1; # name of node for test my $test_node = 'Search-Estraier'; @@ -57,7 +57,9 @@ #diag $doc->dump_draft; } -ok( $node->out_doc( 0 ), 'out_doc'); +ok(my $id = $node->uri_to_id( 'data001' ), 'uri_to_id'); + +ok( $node->out_doc( $id ), "out_doc $id"); for ( 1 .. 5 ) { ok( $node->out_doc_by_uri( 'test' . $_ ), "out_doc_by_uri test$_"); @@ -69,5 +71,7 @@ for ( 6 .. 10 ) { ok( $node->get_doc( $_ ), "get_doc $_"); - ok( $node->get_doc_by_uri( 'test' . $_ ), "get_doc_by_uri test$_"); + my $uri = 'test' . $_; + ok( $node->get_doc_by_uri( $uri ), "get_doc_by_uri $uri"); + ok( my $k = $node->etch_doc_by_uri( $uri ), "etch_doc_by_uri $uri"); }