xref: /php-src/ext/hash/tests/adler32.phpt (revision f73c0102)
1--TEST--
2Hash: ADLER32 algorithm
3--FILE--
4<?php
5echo hash('adler32', ''), "\n";
6echo hash('adler32', 'a'), "\n";
7echo hash('adler32', 'abc'), "\n";
8echo hash('adler32', 'message digest'), "\n";
9echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
10echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
11echo hash('adler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
12?>
13--EXPECT--
1400000001
1500620062
16024d0127
1729750586
1890860b20
198adb150c
2097b61069
21