generated/2852

sha256 9dbcb3647f7dc5659bdd52735f410c90f0781fa227b5ca946434bca0154fb141

Document

!foo n: !!null null
t: !!timestamp "\x31\x39\x34\x30\x2D\x30\x35\x2D\x31\x33\x74\x30\x31\x3A\x30\x38\x3A\x30\x31\x5A"
b: !!binary "\x77\x41\x41\x43\x41\x67\x3D\x3D"

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
representation/binaryopen from construct on: each parser's stance decides
representation/timestampopen from construct on: each parser's stance decides
featuresencoding/byte-order-mark node/tag-local node/tag-shorthand presentation/escape-hex presentation/plain presentation/quoted-double presentation/time-lower-t value/binary value/mapping value/non-string-key value/null value/timestamp
meaning (yaml-1.2-core){"b":"wAACAg==","n":null,"t":"1940-05-13T01:08:01Z"}

Answer groups

verdict split

go-yaml yaml.v3

accept

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

refuse by the parser

value split

go-yaml

{"b":"wAACAg==","n":null,"t":"1940-05-13T01:08:01Z"}

yaml.v3

{"b":"�\u0000\u0002\u0002","n":null,"t":"1940-05-13T01:08:01Z"}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, explained refuse by the parser n/i n/i bom-before-content: the parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
libfyaml accepted refuse by the loader unscored n/i value: the loader rejects the document past parse, where the verdict is given UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 0: invalid start byte
yamlstar rejected, explained refuse by the parser rejected, explained n/i bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
value: bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
Error: parse: Parser finished before end of input
yaml.v3 accepted accept different, explained different
document 0

written

b: !!binary wAACAg==
"n": null
t: 1940-05-13T01:08:01Z

read back

{"b":"�\u0000\u0002\u0002","n":null,"t":"1940-05-13T01:08:01Z"}
value: binary-as-bytes: yaml.v3 decodes !!binary into its bytes, which the runner writes as a string, where the corpus states the base64 text: !!binary "Iwc=" comes back as "#\u0007"
go-yaml accepted accept ok same

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.