mirror of
https://github.com/stephenenelson/convert-binhex.git
synced 2024-12-27 16:31:37 +00:00
Added test for macbinary CRC
This commit is contained in:
parent
fead905e96
commit
e7107a4bd3
5
t/crc.t
5
t/crc.t
@ -2,7 +2,7 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More;
|
||||
use Convert::BinHex 'binhex_crc';
|
||||
use Convert::BinHex qw(binhex_crc macbinary_crc);
|
||||
|
||||
# Random data
|
||||
my $data = "U1SBdxdMHpA2wlW3TOgUHXZ00jvHnkyU/ndXnr9RMElXdQXUAGYrPpf4F8jO";
|
||||
@ -10,4 +10,7 @@ my $data = "U1SBdxdMHpA2wlW3TOgUHXZ00jvHnkyU/ndXnr9RMElXdQXUAGYrPpf4F8jO";
|
||||
my $crc = binhex_crc($data);
|
||||
is($crc, 35360);
|
||||
|
||||
my $mac_crc = macbinary_crc($data);
|
||||
is($crc, 35360);
|
||||
|
||||
done_testing();
|
Loading…
Reference in New Issue
Block a user