File: addfile.t

package info (click to toggle)
libdigest-whirlpool-perl 1.0.6-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 500 kB
  • ctags: 747
  • sloc: perl: 1,685; ansic: 1,646; makefile: 49
file content (16 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;

use Test::More tests => 1;

use File::Spec;
use Digest::Whirlpool;

my $path = File::Spec->catfile( qw< t file.test > );

open INFILE, $path;

my $whirlpool = Digest::Whirlpool->new;

$whirlpool->addfile( *INFILE );

like $whirlpool->clone->hexdigest, qr/^f1d/, "adding two items to the first one";