/[Search-Estraier]/trunk/t/5_Node.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/5_Node.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 168 by dpavlin, Sun Aug 6 16:29:34 2006 UTC revision 169 by dpavlin, Sun Aug 6 16:42:39 2006 UTC
# Line 3  Line 3 
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;
# Line 157  ok(! $node->uri_to_id( 'does-not-exists' Line 157  ok(! $node->uri_to_id( 'does-not-exists'
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);

Legend:
Removed from v.168  
changed lines
  Added in v.169

  ViewVC Help
Powered by ViewVC 1.1.26