You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(engine): assert 2-space indent in encodeYAMLNodeIndented happy path
Previous shape claimed in the docstring to "guard against a
refactor that swaps the indent" but only checked for the
substring "key: value" — flat top-level mapping has no leading
spaces regardless of indent setting, so the assertion was
indent-blind. Switch to a nested mapping and assert "\n inner:
leaf" with the 2-space prefix, plus an explicit reject of the
"\n inner: leaf" 4-space variant (yaml.v3's default when
SetIndent is not called). Now a regression that drops
SetIndent(2) actually fails this test.
Signed-off-by: Aleksei Sviridkin <f@lex.la>
0 commit comments