3 |
use strict; |
use strict; |
4 |
use blib; |
use blib; |
5 |
|
|
6 |
my $tests = 272; |
my $tests = 273; |
7 |
|
|
8 |
use Test::More; |
use Test::More; |
9 |
use Test::Exception; |
use Test::Exception; |
157 |
my $id; |
my $id; |
158 |
ok($id = $node->uri_to_id( 'data0' ), "uri_to_id(data0)"); |
ok($id = $node->uri_to_id( 'data0' ), "uri_to_id(data0)"); |
159 |
|
|
160 |
|
throws_ok { $node->get_doc( 'foo') } qr/id must be number/, 'croak on non-number'; |
161 |
|
|
162 |
ok($doc = $node->get_doc( $id ), "get_doc($id) for edit"); |
ok($doc = $node->get_doc( $id ), "get_doc($id) for edit"); |
163 |
$doc->add_attr('foo', 'bar'); |
$doc->add_attr('foo', 'bar'); |
164 |
#diag Dumper($doc); |
#diag Dumper($doc); |