/[webpac2]/trunk/t/7-est.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/7-est.t

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

revision 302 by dpavlin, Mon Dec 19 21:35:37 2005 UTC revision 887 by dpavlin, Mon Sep 3 15:26:46 2007 UTC
# Line 2  Line 2 
2    
3  use strict;  use strict;
4    
5  use Test::More tests => 12;  use Test::More tests => 13;
6  use Test::Exception;  use Test::Exception;
7  use Cwd qw/abs_path/;  use Cwd qw/abs_path/;
8  use File::Temp qw/tempdir/;  use File::Temp qw/tempdir/;
9  use Data::Dumper;  use Data::Dump;
10  use blib;  use blib;
11    
12  BEGIN {  BEGIN {
# Line 30  my $config = { Line 30  my $config = {
30    
31  ok(my $est = new WebPAC::Output::Estraier( %{ $config } ), "new WebPAC::Output::Estraier");  ok(my $est = new WebPAC::Output::Estraier( %{ $config } ), "new WebPAC::Output::Estraier");
32    
 ok(my $list = $est->master( action => 'nodelist' ), "nodelist");  
   
 like($list , qr/$config->{database}/, "found $config->{database}");  
   
33  my $ds = {  my $ds = {
34          'Source' => {          'Source' => {
35                  'name' => 'Izvor: ',                  'name' => 'Izvor: ',
# Line 67  ok(my @res = $est_s->search( Line 63  ok(my @res = $est_s->search(
63    
64  cmp_ok(($#res + 1), '==', $max, "$max hits");  cmp_ok(($#res + 1), '==', $max, "$max hits");
65    
66  diag Dumper(\@res);  ok($est->master( action => 'nodeadd', name => 'webpac2test_link', label => 'test' ), "nodeadd");
67    
68    ok($est->add_link( from => 'webpac2test', to => 'webpac2test_link', credit => 42 ), "add_link");
69    
70  ok($est->master( action => 'nodedel', name => 'webpac2test' ), "nodedel");  ok($est->master( action => 'nodedel', name => 'webpac2test' ), "nodedel");
71    ok($est->master( action => 'nodedel', name => 'webpac2test_link' ), "nodedel");
72    

Legend:
Removed from v.302  
changed lines
  Added in v.887

  ViewVC Help
Powered by ViewVC 1.1.26