/[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 29 by dpavlin, Thu Jan 5 15:30:35 2006 UTC revision 30 by dpavlin, Thu Jan 5 15:33:48 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 5;  use Test::More tests => 8;
7  use Test::Exception;  use Test::Exception;
8  use Data::Dumper;  use Data::Dumper;
9    
# Line 15  isa_ok($node, 'Search::Estraier::Node'); Line 15  isa_ok($node, 'Search::Estraier::Node');
15  ok($node->set_url('http://localhost:1978/'), 'set_url');  ok($node->set_url('http://localhost:1978/'), 'set_url');
16    
17  ok($node->set_proxy('proxy.example.com', 8080), 'set_proxy');  ok($node->set_proxy('proxy.example.com', 8080), 'set_proxy');
18    throws_ok {$node->set_proxy('proxy.example.com', 'foo') } qr/port/, 'set_proxy port NaN';
19    
20    ok($node->set_timeout(42), 'set_timeout');
21    throws_ok {$node->set_timeout('foo') } qr/timeout/, 'set_timeout NaN';

Legend:
Removed from v.29  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26