|
|
|
@ -1452,7 +1452,6 @@ func TestApp_Run_CommandWithSubcommandHasHelpTopic(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
output := buf.String()
|
|
|
|
|
//log.Printf("output: %q\n", buf.Bytes())
|
|
|
|
|
|
|
|
|
|
if strings.Contains(output, "No help topic for") {
|
|
|
|
|
t.Errorf("expect a help topic, got none: \n%q", output)
|
|
|
|
@ -1719,7 +1718,6 @@ func TestApp_Run_Categories(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
output := buf.String()
|
|
|
|
|
//log.Printf("output: %q\n", buf.Bytes())
|
|
|
|
|
|
|
|
|
|
if !strings.Contains(output, "1:\n command1") {
|
|
|
|
|
t.Errorf("want buffer to include category %q, did not: \n%q", "1:\n command1", output)
|
|
|
|
|