mirror of
https://github.com/stephenenelson/convert-binhex.git
synced 2024-11-22 02:30:55 +00:00
16 lines
300 B
Perl
16 lines
300 B
Perl
use strict;
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
use Convert::BinHex qw(binhex_crc macbinary_crc);
|
|
|
|
# Random data
|
|
my $data = "U1SBdxdMHpA2wlW3TOgUHXZ00jvHnkyU/ndXnr9RMElXdQXUAGYrPpf4F8jO";
|
|
|
|
my $crc = binhex_crc($data);
|
|
is($crc, 35360);
|
|
|
|
my $mac_crc = macbinary_crc($data);
|
|
is($crc, 35360);
|
|
|
|
done_testing(); |