--- trunk/t/5_Node.t 2006/01/06 02:07:10 48 +++ trunk/t/5_Node.t 2006/01/06 12:40:23 49 @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 57; +use Test::More tests => 77; use Test::Exception; use Data::Dumper; @@ -76,7 +76,12 @@ ok( my $id = $node->uri_to_id( $uri ), "uri_to_id $uri"); ok( $node->get_doc( $id ), "get_doc $id"); 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"); + cmp_ok( $node->get_doc_attr( $id, '@uri' ), 'eq', $uri, "get_doc_attr $id"); + cmp_ok( $node->get_doc_attr_by_uri( $uri, '@uri' ), 'eq', $uri, "get_doc_attr $id"); + ok( my $k = $node->etch_doc( $id ), "etch_doc_by_uri $uri"); + ok( my $k2 = $node->etch_doc_by_uri( $uri ), "etch_doc_by_uri $uri"); + #diag Dumper($k, $k2); + ok( eq_hash( $k, $k2 ), "keywords"); } my $v;