xref: /PHP-5.3/ext/hash/tests/adler32.phpt (revision 27a1ce80)
1--TEST--
2ADLER32
3--SKIPIF--
4<?php extension_loaded('hash') or die('skip'); ?>
5--FILE--
6<?php
7echo hash('adler32', ''), "\n";
8echo hash('adler32', 'a'), "\n";
9echo hash('adler32', 'abc'), "\n";
10echo hash('adler32', 'message digest'), "\n";
11echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
12echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
13echo hash('adler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
14?>
15--EXPECT--
1600000001
1700620062
18024d0127
1929750586
2090860b20
218adb150c
2297b61069
23