⚝
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 :
error.t
use FindBin '$Bin'; use lib $Bin; use TestYAMLTests tests => 25; filters { error => ['lines', 'chomp'], }; run { my $test = shift; eval { Load($test->yaml); }; for my $error ($test->error) { if ($error =~ s/^!//) { my $re = qr/$error/; unlike $@, $re, $test->name . " (!~ /$error/)"; } else { my $re = qr/$error/; like $@, $re, $test->name . " (=~ /$error/)"; } } }; __DATA__ === Bad hash indentation +++ yaml foo: 2 bar: 4 +++ error mapping values are not allowed in this context document: 1 line: 2 column: 5 === Unquoted * as hash key +++ yaml *: foo +++ error did not find expected alphabetic or numeric character document: 1 column: 2 while scanning an alias === Unquoted * as hash value +++ yaml --- foo bar: * +++ error did not find expected alphabetic or numeric character document: 1 line: 2 column: 11 while scanning an alias === Unquoted * as scalar +++ yaml --- xxx --- * * * +++ error did not find expected alphabetic or numeric character document: 2 line: 2 column: 6 while scanning an alias === Bad tag for array +++ yaml --- !!foo [] +++ error bad tag found for array: 'tag:yaml.org,2002:foo' document: 1 === Bad tag for hash +++ yaml --- !!!foo {} +++ error bad tag found for hash: 'tag:yaml.org,2002:!foo' document: 1 !line: !column: === https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure +++ yaml x: " " y: z +++ error did not find expected key