--- trunk/t/5_Node.t 2006/08/06 16:42:06 168 +++ trunk/t/5_Node.t 2006/08/06 16:42:39 169 @@ -3,7 +3,7 @@ use strict; use blib; -my $tests = 272; +my $tests = 273; use Test::More; use Test::Exception; @@ -157,6 +157,8 @@ my $id; ok($id = $node->uri_to_id( 'data0' ), "uri_to_id(data0)"); +throws_ok { $node->get_doc( 'foo') } qr/id must be number/, 'croak on non-number'; + ok($doc = $node->get_doc( $id ), "get_doc($id) for edit"); $doc->add_attr('foo', 'bar'); #diag Dumper($doc);