| Revision 20119,
558 bytes
checked in by nanasess, 15 years ago
(diff) |
|
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 | --TEST-- |
|---|
| 2 | Function -- sha1 |
|---|
| 3 | --FILE-- |
|---|
| 4 | <?php |
|---|
| 5 | require_once 'PHP/Compat/Function/sha1.php'; |
|---|
| 6 | |
|---|
| 7 | $tests = array( |
|---|
| 8 | 'abc', |
|---|
| 9 | 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq', |
|---|
| 10 | 'a', |
|---|
| 11 | '0123456701234567012345670123456701234567012345670123456701234567', |
|---|
| 12 | '' |
|---|
| 13 | ); |
|---|
| 14 | |
|---|
| 15 | foreach ($tests as $test) { |
|---|
| 16 | echo php_compat_sha1($test), "\n"; |
|---|
| 17 | } |
|---|
| 18 | ?> |
|---|
| 19 | --EXPECT-- |
|---|
| 20 | a9993e364706816aba3e25717850c26c9cd0d89d |
|---|
| 21 | 84983e441c3bd26ebaae4aa1f95129e5e54670f1 |
|---|
| 22 | 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 |
|---|
| 23 | e0c094e867ef46c350ef54a7f59dd60bed92ae83 |
|---|
| 24 | da39a3ee5e6b4b0d3255bfef95601890afd80709 |
|---|
Note: See
TracBrowser
for help on using the repository browser.