generated/765

sha256 50585317d7a77c8c4ff953f20b453ef80630e6fe5441b49e05c5c9c9a08dc2dc

Document

---
# c1
? 'base'
: # c2
     &m4
     # c3
     ? 'o9'
     : 5 # c4
# c5
? 'o'
: # c6
     &m3 !!omap
     # c7
     - # c8
          # c9
          ? 'o0'
          : 7 # c10
     # c11
     - # c12
          # c13
          ? 'o1'
          : 1 # c14
     # c15
     - # c16
          # c17
          ? <<
          : *m4 # c18
# c19
? 'again'
: *m3 # c20
# c21
? 'p'
: # c22
     !!pairs
     # c23
     - # c24
          # c25
          ? 'p0'
          : 1 # c26
     # c27
     - # c28
          # c29
          ? 'p0'
          : 2 # c30

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
representation/ordered-mapopen from construct on: each parser's stance decides
featuresbreak/cr encoding/byte-order-mark node/alias node/anchor node/tag-shorthand presentation/comment-above presentation/comment-inline presentation/document-marker presentation/explicit-key presentation/plain presentation/property-line presentation/quoted-single value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"again":{"o0":7,"o1":1,"\u003c\u003c":{"o9":5}},"base":{"o9":5},"o":{"o0":7,"o1":1,"\u003c\u003c":{"o9":5}},"p":[{"p0":1},{"p0":2}]}

Answer groups

verdict split

go-yaml libfyaml yaml.v3

accept

perlref yamlstar

refuse by the parser

value split

go-yaml

{"again":{"\u003c\u003c":{"o9":5},"o0":7,"o1":1},"base":{"o9":5},"o":{"\u003c\u003c":{"o9":5},"o0":7,"o1":1},"p":[{"p0":1},{"p0":2}]}

libfyaml

{"again":{"o0":7},"base":{"o9":5},"o":[{"o0":7},{"o1":1},{"\u003c\u003c":{"o9":5}}],"p":[{"p0":1},{"p0":2}]}

yaml.v3

{"again":[{"o0":7},{"o1":1},{"o9":5}],"base":{"o9":5},"o":[{"o0":7},{"o1":1},{"o9":5}],"p":[{"p0":1},{"p0":2}]}

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 accept different, explained n/i value: ordered-map-as-sequence: the Python binding has no ordered map, and returns !!omap as a sequence of one-pair mappings
yamlstar rejected, explained refuse by the parser rejected, explained 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
value: 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 different, explained same value: merge-key-applied: yaml.v3 applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
go-yaml accepted accept ok same

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