From 8b16c2fe1456f92da8df77b2018de6ae7d083e0a Mon Sep 17 00:00:00 2001 From: Stephen Nelson Date: Sun, 25 Aug 2013 09:52:43 -0700 Subject: [PATCH] Added test for crc --- t/crc.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 t/crc.t diff --git a/t/crc.t b/t/crc.t new file mode 100644 index 0000000..43c3f48 --- /dev/null +++ b/t/crc.t @@ -0,0 +1,13 @@ +use strict; +use warnings; + +use Test::More; +use Convert::BinHex 'binhex_crc'; + +# Random data +my $data = "U1SBdxdMHpA2wlW3TOgUHXZ00jvHnkyU/ndXnr9RMElXdQXUAGYrPpf4F8jO"; + +my $crc = binhex_crc($data); +is($crc, 35360); + +done_testing(); \ No newline at end of file