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

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

revision 640 by dpavlin, Wed Sep 6 14:25:16 2006 UTC revision 641 by dpavlin, Wed Sep 6 20:54:47 2006 UTC
# Line 2  Line 2 
2    
3  use strict;  use strict;
4    
5  use Test::More tests => 155;  use Test::More tests => 157;
6  use Test::Exception;  use Test::Exception;
7  use Cwd qw/abs_path/;  use Cwd qw/abs_path/;
8  use blib;  use blib;
# Line 679  sub test_s { Line 679  sub test_s {
679                  qq{                  qq{
680                          rec1(200);                          rec1(200);
681                  },                  },
682                  ["a1", "b1", "a2", "b2", "c1", "c2"],                  ['a1', 'b1', 'a2', 'b2', 'c1', 'c2', 'a3', 'a4', 'b3', 'c3', 'a5' ],
683            );
684    
685            is_deeply(
686                    [ _pack_subfields_hash({
687                            a => [ 'a1', 'a2' ], b => [ 'b1', 'b2' ], c => [ 'c1', 'c2' ],
688                            subfields => [ qw/a 0 b 0 a 1 b 1 c 0 c 1/ ],
689                    }) ],
690                    ['a1', 'b1', 'a2', 'b2', 'c1', 'c2'],
691                    '_pack_subfields_hash( $h )'
692            );
693    
694            is_deeply(
695                    [ _pack_subfields_hash({
696                            a => [ 'a1', 'a2' ], b => [ 'b1', 'b2' ], c => [ 'c1', 'c2' ],
697                            subfields => [ qw/a 0 b 0 a 1 b 1 c 0 c 1/ ],
698                    }, 1) ],
699                    ['^a','a1', '^b','b1', '^a','a2', '^b','b2', '^c','c1', '^c','c2'],
700                    '_pack_subfields_hash( $h, 1 )'
701          );          );
702  }  }
703    

Legend:
Removed from v.640  
changed lines
  Added in v.641

  ViewVC Help
Powered by ViewVC 1.1.26