From: Reinhard Tartler Date: Mon, 15 Jun 2026 20:57:27 -0400 Subject: yaml_test: avoid YAML quoting ambiguity in round-trip test MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit The key 'n' is ambiguous in YAML 1.1 — it can be interpreted as a boolean 'no'/null value. go.yaml.in/yaml/v4 changed the quoting style for this key from double quotes ('"n"') to single quotes (''n'') between v4.0.0-rc.2 and v4.0.0-rc.5. Since TestYAMLRoundTrip compares marshalled output against the original input with assert.Equal, the test fails under the newer dependency. Replace the key with 'k', which does not trigger YAML boolean ambiguity and is rendered as an unquoted scalar by all yaml/v4 versions. Discovered when bumping go.yaml.in/yaml/v4 from v4.0.0-rc.2 to v4.0.0-rc.5 for Debian packaging. Forwarded: https://github.com/pb33f/ordered-map/pull/3 Signed-off-by: Reinhard Tartler --- yaml_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml_test.go b/yaml_test.go index 83aeac4..3ce3f4e 100644 --- a/yaml_test.go +++ b/yaml_test.go @@ -269,7 +269,7 @@ m: m: a: b c: 28 - "n": null + k: null 28: a: false b: