More VMS tweaks from Craig A. Berry.
[p5sagit/p5-mst-13.2.git] / t / lib / md5-align.t
CommitLineData
4e0554ec 1BEGIN {
2 chdir 't' if -d 't';
3 @INC = '../lib';
4}
5
6# Test that md5 works on unaligned memory blocks
7
8print "1..1\n";
9
10use strict;
11use Digest::MD5 qw(md5_hex);
12
13my $str = "\100" x 20;
14substr($str, 0, 1, ""); # chopping off first char makes the string unaligned
15
16#use Devel::Peek; Dump($str);
17
18print "not " unless md5_hex($str) eq "c7ebb510e59ee96f404f288d14cc656a";
19print "ok 1\n";
20