From 4397833d6460e708309535f36729079cbb09869c Mon Sep 17 00:00:00 2001 From: Jason Bowman Date: Mon, 27 Jul 2026 15:33:33 -0700 Subject: [PATCH] test(nix): update the label golden now that bindings mint Variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LABEL_GOLDENS pins the node labels each grammar emits. The nix case is `{ foo = 1; bar = 2; }` — two module-level scalar bindings — and its golden was Module:1, recorded when no Nix binding could be named and none was minted. Both are Variables now, so the golden is Module:1,Variable:2. The mismatch CI reported is the intended behaviour change, not a regression. Extraction, pipeline, grammar_labels, grammar_regression and lang_contract: 534 passed, 0 failed. Signed-off-by: Jason Bowman --- tests/test_grammar_labels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_grammar_labels.c b/tests/test_grammar_labels.c index b592e3285..bae856fab 100644 --- a/tests/test_grammar_labels.c +++ b/tests/test_grammar_labels.c @@ -200,7 +200,7 @@ static const LabelGolden LABEL_GOLDENS[] = { {"gn", "Module:1"}, {"just", "Function:1,Module:1"}, {"hcl", "Class:1,Module:1"}, - {"nix", "Module:1"}, + {"nix", "Module:1,Variable:2"}, {"gomod", "Module:1"}, {"gotemplate", "Module:1"}, {"graphql", "Class:1,Field:1,Module:1"},