Format the help's test (issue 1851)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user