use diagnostics;
use strict;
use warnings;
use Test::More tests => 2;
BEGIN {
use_ok('Crypt::Misty1')
};
BEGIN {
my $key = pack "H32", "01010101010101010101010101010101";
my $cipher = new Crypt::Misty1 $key;
my $ciphertext = pack "H16", "571b932d3a5b958c";
my $plaintext = $cipher->decrypt($ciphertext);
my $answer = unpack "H*", $plaintext;
is("0101010101010101", $answer);
};