/[webpac2]/trunk/t/3-normalize-set.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/3-normalize-set.t

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

revision 460 by dpavlin, Fri May 12 14:07:08 2006 UTC revision 461 by dpavlin, Fri May 12 14:54:25 2006 UTC
# Line 2  Line 2 
2    
3  use strict;  use strict;
4    
5  use Test::More tests => 16;  use Test::More tests => 23;
6  use Test::Exception;  use Test::Exception;
7  use Cwd qw/abs_path/;  use Cwd qw/abs_path/;
8  use blib;  use blib;
# Line 86  sub test { Line 86  sub test {
86    
87  sub test_s {  sub test_s {
88          my $t = shift || die;          my $t = shift || die;
89            $t =~ s/[\n\r\s]+/ /gs;
90          ok(my $v = eval "$t", "eval: $t");          ok(my $v = eval "$t", "eval: $t");
91          ok(! $@, "$t == ".join("|", @{$v}));          ok(! $@, "eval error: $@");
92  }  }
93    
94  {  {
# Line 145  sub test_s { Line 146  sub test_s {
146          ok(my $ds = get_ds(), "get_ds");          ok(my $ds = get_ds(), "get_ds");
147          diag "ds = ", Dumper($ds);          diag "ds = ", Dumper($ds);
148    
149          #my $n = read_file( "$abs_path/conf/normalize/isis_ffzg.pl" );          clean_ds();
150    
151            my $n = read_file( "$abs_path/conf/normalize/isis_ffzg.pl" );
152            $n .= "\n1;\n";
153          #diag "normalize code:\n$n\n";          #diag "normalize code:\n$n\n";
154          #eval "$n";          test_s( $n );
155          #warn $@ if ($@);  
156            ok($ds = get_ds(), "get_ds");
157            diag "ds = ", Dumper($ds);
158  }  }
159    

Legend:
Removed from v.460  
changed lines
  Added in v.461

  ViewVC Help
Powered by ViewVC 1.1.26