/[Sack]/trunk/t/Sack-Digest.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/Sack-Digest.t

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

revision 35 by dpavlin, Wed Sep 23 21:47:32 2009 UTC revision 36 by dpavlin, Wed Sep 23 22:22:18 2009 UTC
# Line 1  Line 1 
1  #!/usr/bin/perl  #!/usr/bin/perl
2    
3  use Test::More tests => 14;  use Test::More tests => 14;
4    use Data::Dump qw(dump);
5    
6  use lib 'lib';  use lib 'lib';
7    
# Line 24  foreach my $full ( 'foo', 'bar', 'baz' ) Line 25  foreach my $full ( 'foo', 'bar', 'baz' )
25  cmp_ok( Sack::Digest->from_int( 42 ), '==', 42, 'from_int missing' );  cmp_ok( Sack::Digest->from_int( 42 ), '==', 42, 'from_int missing' );
26    
27  ok( Sack::Digest->close, 'close' );  ok( Sack::Digest->close, 'close' );
28    
29    ok( Sack::Digest->open(0), 'open again' );
30    
31    my $out = {
32            "CR#+" => { 1=>1, 2=>1, 3=>1, 4=>1, 5=>1 }
33    };
34    
35    ok( my $full = Sack::Digest->undigest_out( $out ), 'undigest_out' );
36    diag dump $full;
37    

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26