WORKED CASE · SYNTHETIC TEST DATA
Separate YAML formatting from changing values
Reformatting a configuration should not silently turn an identifier into a different value. Use a quoted code as a first check.
Input and settings
name: Ada
count: 2Run and interpret
Format the sample and compare both values. Next try an unquoted unsafe integer: it should be rejected, not rounded into a new identifier.
Expected output
name: Ada
count: 2Scope and possible misuse
This parses and re-emits YAML rather than preserving source tokens. Comments, quote style and aliases may change. Keep the original if exact formatting matters.