Initial commit.

This commit is contained in:
2021-02-07 19:32:31 +08:00
commit 52fd8f4d3c
20 changed files with 2355 additions and 0 deletions

22
t/00-signature.t Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/perl
use strict;
print "1..1\n";
if (!-s 'SIGNATURE') {
print "ok 1 # skip No signature file found\n";
}
elsif (!eval { require Module::Signature; 1 }) {
print "ok 1 # skip ",
"Next time around, consider install Module::Signature, ",
"so you can verify the integrity of this distribution.\n";
}
elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
print "ok 1 # skip Cannot connect to the keyserver\n";
}
else {
(Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
or print "not ";
print "ok 1 # Valid signature\n";
}
__END__

21
t/01-basic.t Executable file
View File

@ -0,0 +1,21 @@
#! /usr/bin/perl -w
# Basic test suite
# Copyright (c) 2007 imacat. All rights reserved. This program is free
# software; you can redistribute it and/or modify it under the same terms
# as Perl itself.
use strict;
use warnings;
use Test;
BEGIN { plan tests => 1 }
use vars qw($r);
$r = eval {
use Acme::GuessNumber;
guess_number(25, HURRY_UP);
return 1;
};
# 1
ok($r, 1);

5
t/99-pod.t Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/perl
use Test::More;
eval "use Test::Pod 1.00";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
all_pod_files_ok();