generated/840/a duplicate entry appended

sha256 a245f93207bbc6e2c59af250b451c8ce18ba0a947ffd8254882583d40ee886be

Document

---
# c1
-	# c2
    !foo
    # c3
    -	false	# c4
    # c5
    -	# c6
        !!map
        # c7
        ?	&a1 "\x33\x41\x2E\x2E\x42\x48\x65"
        :	.nan	# c8
        # c9
        ?	&a1 "\x33\x41\x2E\x2E\x42\x48\x65"
        :	>4-
            dup
# c10
-	*a1	# c11
# c12
-	# c13
    !
    # c14
    ?	1_000
    : !	"\x20"	# c15
# c16
-	# c17
    # c18
    ?	"\x21\x61"
    :	>4-
        - a
    # c19
    ?	*a1
    :	>4-
        aliased

Corpus

grammarvalid, vouched for up to construct
key/duplicatereject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node
featuresbreak/crlf node/alias node/anchor node/tag-local node/tag-non-specific node/tag-shorthand presentation/block-folded presentation/block-indicator presentation/comment-above presentation/comment-inline presentation/document-marker presentation/escape-hex presentation/explicit-key presentation/plain presentation/property-line presentation/quoted-double presentation/tab-separation value/bool value/float value/float-special value/mapping value/non-string-key value/sequence value/string
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml yaml.v3

refuse by the parser

perlref yamlstar

accept

value

yamlstar

[[false,{"516546466672101":"dup"}],"516546466672101",{"1_000":"32"},{"3397":"- a","516546466672101":"aliased"}]

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i key/duplicate: the grammar has no production against a key written twice, and the reference parser implements the grammar alone, so it does not check this settled rule
libfyaml rejected, explained refuse by the parser not scored n/i tab-after-block-entry: fy-tool rejects a tab after a '-' before a block scalar header, "-\t>-", and before some scalars in nested entries, where s-separate takes the tab stdin:15:10: error: cannot use tab for indentation of block entry
yamlstar accepted accept not scored n/i key/duplicate: the loader does not check this settled rule: it keeps the last value of a key written twice, so "a: 1\na: 2" loads as {"a": 2}
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 3: 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 [12:11] JSON has no number for .nan

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