--- trunk/t/5_Node.t 2006/01/05 23:32:31 41 +++ trunk/t/5_Node.t 2006/01/06 01:12:10 44 @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 34; +use Test::More tests => 45; use Test::Exception; use Data::Dumper; @@ -59,6 +59,17 @@ ok( $node->out_doc( 0 ), 'out_doc'); -for ( 1 .. 10 ) { - ok( $node->out_doc_by_uri( 'test' .$_ ), "out_doc_by_uri test$_"); +for ( 1 .. 5 ) { + ok( $node->out_doc_by_uri( 'test' . $_ ), "out_doc_by_uri test$_"); +} + +$doc->add_attr('@uri', 'data001'); +$doc->add_attr('foo', 'bar'); +ok( $node->edit_doc( $doc ), 'edit_doc'); + +for ( 6 .. 10 ) { + ok( $node->get_doc( $_ ), "get_doc $_"); + 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"); }