blob: 81260277f4535425602c9d0ffb57c662d8785fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env perl
use strict;
use Test::More tests => 4;
# To find Digest::Dummy
use lib 't/lib';
use Digest;
$@ = "rt#50663";
my $d;
$d = Digest->new("Dummy");
is $@, "rt#50663";
is $d->digest, "ooo";
$d = Digest->Dummy;
is $d->digest, "ooo";
$Digest::MMAP{"Dummy-24"} = [["NotThere"], "NotThereEither", ["Digest::Dummy", 24]];
$d = Digest->new("Dummy-24");
is $d->digest, "24";
|