From faa4bba89895b0f4300b30973c10bc31c81ec756 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 30 Sep 2026 20:37:47 +0200 Subject: [PATCH] Fail the arm kind test on an arm it lists no kind for --- hold_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hold_test.go b/hold_test.go index acab7ff..8bc7e23 100644 --- a/hold_test.go +++ b/hold_test.go @@ -776,8 +776,8 @@ func TestCompileFixesHowEachArmIsRead(t *testing.T) { want := map[string]armKind{"/other.y": refPathRead, "n": heldRead, "p.x": heldRead, "w": freshRead} for _, o := range tm.compiled.ops { for _, a := range append(o.arms, o.operands...) { - if a.kind != want[a.spelling] { - t.Errorf("{%s} compiles to kind %d, want %d", a.spelling, a.kind, want[a.spelling]) + if k, ok := want[a.spelling]; !ok || a.kind != k { + t.Errorf("{%s} compiles to kind %d, want %d", a.spelling, a.kind, k) } } }