Skip to content

Commit

Permalink
Author test for obosoleted Sisimai::Bite #333
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Nov 19, 2019
1 parent d932d80 commit 75a08dc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions xt/150-obsoleted-bite.t
@@ -0,0 +1,24 @@
use strict;
use Test::More;
use lib qw(./lib ./blib/lib);
use Sisimai::Bite;

my $PackageName = 'Sisimai::Bite';
my $MethodNames = {
'class' => ['DELIVERYSTATUS', 'smtpagent', 'description'],
'object' => [],
};

use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };

MAKE_TEST: {
my $v = $PackageName->DELIVERYSTATUS;
isa_ok $v, 'HASH';
ok keys %$v;

like $PackageName->smtpagent, qr/\ASisimai::Bite\z/;
is $PackageName->description, '';
}

done_testing;

0 comments on commit 75a08dc

Please sign in to comment.