generated/1544/stream

sha256 f06a2b7c34a89250eadaa55a81daba15a58c20e5c165b8e9792810750bb00d62

Document

---
!!set
'base': # c1
     &m1
     'b0': -5 # c2
     'b1': -2 # c3
     'b2': -6 # c4
'item': # c5
     &k1 <<: # c6
          !!map
          'c0': 6 # c7
          'c1': 3 # c8
     'b0': 99 # c9
...
---
!foo 'n': !!null NULL # c10
'b': !!binary 'CmAA/HcA8QEAAADF' # c11

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresbreak/cr node/anchor node/tag-local node/tag-shorthand presentation/comment-inline presentation/document-marker presentation/document-suffix presentation/multi-document presentation/plain presentation/property-line presentation/quoted-single value/binary value/int value/mapping value/merge-key value/non-string-key value/null
meaning (none stated)

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

{"base":{"b0":-5,"b1":-2,"b2":-6},"item":{"\u003c\u003c":{"c0":6,"c1":3},"b0":99}}
{"b":"CmAA/HcA8QEAAADF","n":null}

yaml.v3

{"base":{"b0":-5,"b1":-2,"b2":-6},"item":{"b0":99,"c0":6,"c1":3}}
{"b":"\n`\u0000�w\u0000�\u0001\u0000\u0000\u0000�","n":null}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, explained refuse by the parser n/i n/i lone-cr-break: the parser takes a lone CR as a line break in some places and not in others: "x\r\r", "x\r# c", "!foo\r- a", "\r!" and an empty line written "\n\r" reject the document, where [28] b-break takes a lone CR. Any valid document holding a lone CR is covered, so a defect of another kind in such a document is hidden
libfyaml accepted refuse by the loader not scored n/i UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 3: invalid start byte
yamlstar rejected, explained refuse by the parser not scored n/i lone-cr-break: the reference parser takes a lone CR as a line break in some places and not in others: "x\r\r", "x\r# c", "!foo\r- a", "\r!" and an empty line written "\n\r" reject the document, where [28] b-break takes a lone CR. Any valid document holding a lone CR is covered, so a defect of another kind in such a document is hidden Error: parse: Parser finished before end of input
yaml.v3 accepted accept not scored different
document 1

written

b: !!binary CmAA/HcA8QEAAADF
"n": null

read back

{"b":"\n`\u0000�w\u0000�\u0001\u0000\u0000\u0000�","n":null}
go-yaml accepted accept not scored same

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