Format the help's test (issue 1851)

This commit is contained in:
2026-10-22 21:20:06 +02:00
parent 58512a9c6d
commit d51324df45
+1 -1
View File
@@ -10,7 +10,7 @@ import (
// the ones R4e added: `register` and `switch`.
func TestTheHelpListsNoRemovedCommandAndTheNewOnes(t *testing.T) {
for _, removed := range []string{"build", "rebuild", "forget-checks", "delivery plan"} {
if regexp.MustCompile(`(?m)^ `+regexp.QuoteMeta(removed)+` `).MatchString(usageText) {
if regexp.MustCompile(`(?m)^ ` + regexp.QuoteMeta(removed) + ` `).MatchString(usageText) {
t.Errorf("the help still lists %q, which is refused as removed", removed)
}
}