⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
YAML-LibYAML-0.89-0
/
t
/
View File Name :
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'";