Файловый менеджер - Редактировать - /home/.cpan/build/YAML-LibYAML-v0.902.0-0/t/null.t
�азад
use FindBin '$Bin'; use lib $Bin; use TestYAMLTests tests => 5; my $array = [ undef, 'undef', 33, '~', undef, undef, '~/file.txt', ]; undef $array->[2]; my $yaml = Dump($array); is $yaml, <<'...', "Nulls dump as ~"; --- - ~ - undef - ~ - '~' - ~ - ~ - ~/file.txt ... my $array2 = Load($yaml); is_deeply $array2, $array, "YAML with undefs loads properly"; $yaml = "{foo, bar}\n"; my $perl = {foo => undef, bar => undef}; is_deeply Load($yaml), $perl, "Set notation has null values"; $yaml = <<'...'; --- foo: bar: - - - gorch: null ... $perl = {foo => undef, bar => [undef, [undef]], gorch => undef}; is_deeply Load($yaml), $perl, "Empty values Load as undefs"; $yaml = <<'...'; --- - - - - ... $perl = [[undef], [undef]]; is_deeply Load($yaml), $perl, "Can Load 'dash art'";
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка