generated/2671/a duplicate entry appended

sha256 6f93f7b60f0956798490153040d5e3ca0c9c887788f24eb70aa9c20e43fa0c13

Document

# c1
"base":
  &m1
  # c2
  "b0":	+2
  # c3
  "b1":	-1
# c4
"item":
  # c5
  <<:
    !<tag:yaml.org,2002:seq>
    # c6
    -	*m1
    # c7
    -
      # c8
      "c0": !<tag:yaml.org,2002:int>	-2
      # c9
      ! "c1": !<tag:yaml.org,2002:int>	+0
  # c10
  "d0":	-1
# c11
"base":	>-
  dup

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
key/duplicatereject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node
featuresencoding/byte-order-mark node/alias node/anchor node/tag-non-specific node/tag-verbatim presentation/block-folded presentation/comment-above presentation/number-signed presentation/plain presentation/property-line presentation/quoted-double presentation/tab-separation value/int value/mapping value/merge-key value/non-string-key value/sequence value/string
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml

accept

perlref yaml.v3 yamlstar

refuse by the parser

value

libfyaml

{"base":"dup","item":{"\u003c\u003c":[{"b0":2,"b1":-1},{"c0":-2,"c1":0}],"d0":-1}}

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 accept not scored n/i
yamlstar rejected, explained refuse by the parser not scored 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 Error: parse: Parser finished before end of input
yaml.v3 rejected, settled refuse by the parser not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node yaml.v3: yaml: line 14: found character that cannot start any token
go-yaml rejected, settled refuse by the loader not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node [24:1] mapping key "base" already defined at [2:1]

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