package main import "testing" // I-4: cancelling an unpublished activation is reachable from the CLI, in // both the bare and the component form, with its flags left for the verb. func TestPlan9SystemVerbCancelActivation(t *testing.T) { for _, in := range [][]string{ {"cancel-activation", "--channel", "stable"}, {"router", "cancel-activation", "--channel", "stable"}, } { verb, rest, comp := systemVerb(in) if verb != "cancel-activation" || comp != "router" || len(rest) != 2 { t.Errorf("systemVerb(%v) = %q %v %q", in, verb, rest, comp) } } }