1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00

MF51: add adler32 test

This commit is contained in:
Michael Wallner
2005-12-03 10:32:42 +00:00
parent 5da5750736
commit 2e3a2a5dbc
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -81,6 +81,7 @@ Initial Release
<file role="test" name="gost.phpt"/>
<file role="test" name="snefru.phpt"/>
<file role="test" name="crc32.phpt"/>
<file role="test" name="adler32.phpt"/>
</dir>
</filelist>
+22
View File
@@ -0,0 +1,22 @@
--TEST--
ADLER32
--SKIPIF--
<?php extension_loaded('hash') or die('skip'); ?>
--FILE--
<?php
echo hash('adler32', ''), "\n";
echo hash('adler32', 'a'), "\n";
echo hash('adler32', 'abc'), "\n";
echo hash('adler32', 'message digest'), "\n";
echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
echo hash('adler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
?>
--EXPECT--
01000000
62006200
27014d02
86057529
200b8690
0c15db8a
6910b697