?????????? ????????? - ??????????????? - /home/.cpan/build/Test-Deep-1.204-0/t/hashkeys.t
???????
use strict; use warnings; use lib 't/lib'; use Std; { check_tests( sub { cmp_deeply({}, hashkeys(), "0"); cmp_deeply({1 => 2, 3 => 4, 5 => 6}, hashkeys(1, 3, 5), "3"); }, [ { name => "0", actual_ok => 1, diag => "", }, { name => "3", actual_ok => 1, diag => "", } ], "keys ok" ); check_tests( sub { cmp_deeply({a => 2, b => 4}, hashkeys("a", "c")); }, [ { actual_ok => 0, diag => <<EOM, Comparing hash keys of \$data Missing: 'c' Extra: 'b' EOM }, ], "bad length" ); check_tests( sub { cmp_deeply("a", hashkeys(1), "string"); cmp_deeply([], hashkeys(1), "array"); }, [ { name => "string", actual_ok => 0, diag => <<EOM, Compared reftype(\$data) got : undef expect : 'HASH' EOM }, { name => "array", actual_ok => 0, diag => <<EOM, Compared reftype(\$data) got : 'ARRAY' expect : 'HASH' EOM }, ], "not array" ); }
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0.01 |
proxy
|
phpinfo
|
???????????