Annotation of embedaddon/php/ext/hash/tests/adler32.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ADLER32
3: --SKIPIF--
4: <?php extension_loaded('hash') or die('skip'); ?>
5: --FILE--
6: <?php
7: echo hash('adler32', ''), "\n";
8: echo hash('adler32', 'a'), "\n";
9: echo hash('adler32', 'abc'), "\n";
10: echo hash('adler32', 'message digest'), "\n";
11: echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
12: echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
13: echo hash('adler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
14: ?>
15: --EXPECT--
16: 00000001
17: 00620062
18: 024d0127
19: 29750586
20: 90860b20
21: 8adb150c
22: 97b61069
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>