source: branches/version-2_5-dev/data/module/Compat/tests/function/sha1.phpt @ 20119

Revision 20119, 558 bytes checked in by nanasess, 13 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
Line 
1--TEST--
2Function -- sha1
3--FILE--
4<?php
5require_once 'PHP/Compat/Function/sha1.php';
6
7$tests = array(
8    'abc',
9    'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
10    'a',
11    '0123456701234567012345670123456701234567012345670123456701234567',
12    ''
13);
14
15foreach ($tests as $test) {
16    echo php_compat_sha1($test), "\n";
17}
18?>
19--EXPECT--
20a9993e364706816aba3e25717850c26c9cd0d89d
2184983e441c3bd26ebaae4aa1f95129e5e54670f1
2286f7e437faa5a7fce15d1ddcb9eaeaea377667b8
23e0c094e867ef46c350ef54a7f59dd60bed92ae83
24da39a3ee5e6b4b0d3255bfef95601890afd80709
Note: See TracBrowser for help on using the repository browser.