summaryrefslogtreecommitdiff
path: root/cpan/Digest-SHA/t/fips198.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Digest-SHA/t/fips198.t')
-rw-r--r--cpan/Digest-SHA/t/fips198.t13
1 files changed, 3 insertions, 10 deletions
diff --git a/cpan/Digest-SHA/t/fips198.t b/cpan/Digest-SHA/t/fips198.t
index f6f5007f5f..6d5a2e0bc1 100644
--- a/cpan/Digest-SHA/t/fips198.t
+++ b/cpan/Digest-SHA/t/fips198.t
@@ -1,13 +1,3 @@
-use strict;
-
-my $MODULE;
-
-BEGIN {
- $MODULE = (-d "src") ? "Digest::SHA" : "Digest::SHA::PurePerl";
- eval "require $MODULE" || die $@;
- $MODULE->import(qw(hmac_sha1_hex));
-}
-
BEGIN {
if ($ENV{PERL_CORE}) {
chdir 't' if -d 't';
@@ -15,6 +5,9 @@ BEGIN {
}
}
+use strict;
+use Digest::SHA qw(hmac_sha1_hex);
+
my @data = map { "Sample #$_" } (1 .. 4);
my @out = (