/[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 631 by dpavlin, Wed Sep 6 14:25:16 2006 UTC revision 669 by dpavlin, Mon Sep 11 14:29:01 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            cmp_ok(
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                    'eq',
700                    '^aa1^bb1^aa2^bb2^cc1^cc2',
701                    '_pack_subfields_hash( $h, 1 )'
702          );          );
703  }  }
704    

Legend:
Removed from v.631  
changed lines
  Added in v.669

  ViewVC Help
Powered by ViewVC 1.1.26