package tools import ( "strings" "testing" ) // #46: the infra#179 finalize guidance must not point at a non-existent command // (`hyperguild new-project` was never built). #50 superseded the original // manual-editing guidance with a concrete, real recovery: re-invoke this same // tool with resume=true. func TestInfra179FinalizeMessage(t *testing.T) { msg := infra179FinalizeMessage("main", 5, 2, "branch does not exist") for _, want := range []string{"infra#179", "resume=true", "branch does not exist"} { if !strings.Contains(msg, want) { t.Errorf("message missing %q\ngot: %s", want, msg) } } if strings.Contains(msg, "hyperguild new-project") { t.Errorf("message must not reference the defunct `hyperguild new-project` command\ngot: %s", msg) } }