generated/2968

sha256 fe327adff9c2285c76ffb62d511768bbd578cb244b61afbd6a0298d3d52342ca

Document

%YAML 1.2
---
0x1 # c1

Corpus

grammarvalid, vouched for up to construct
tagsnone
featurespresentation/comment-inline presentation/document-marker presentation/number-hex presentation/plain presentation/yaml-directive value/int
meaning (yaml-1.2-core)1

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

go-yaml libfyaml

1

yamlstar

"0x1"

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept different, explained n/i value: int-non-decimal-as-string: the loader leaves an integer written 0x or 0o a string, where the core schema reads 0x1A as 26 and 0o17 as 15
yaml.v3 rejected, explained refuse by the parser rejected, explained refused yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
value: yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
yaml.v3: yaml: found incompatible YAML document
go-yaml accepted accept ok same

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