3 |
use strict; |
use strict; |
4 |
use blib; |
use blib; |
5 |
|
|
6 |
use Test::More tests => 57; |
use Test::More tests => 77; |
7 |
use Test::Exception; |
use Test::Exception; |
8 |
use Data::Dumper; |
use Data::Dumper; |
9 |
|
|
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; |
my $v; |