Update command line client to allow specifying command number
This commit is contained in:
parent
1514603517
commit
c0d4a809c9
2 changed files with 33 additions and 14 deletions
|
@ -54,8 +54,12 @@ func Test_InnerMain(t *testing.T) {
|
|||
assert.NoError(t, InnerMain("command", "stash"))
|
||||
assert.NoError(t, InnerMain("command", "repair"))
|
||||
assert.NoError(t, InnerMain("command", "broadcast", "abc"))
|
||||
assert.NoError(t, InnerMain("command", "10", "wait"))
|
||||
assert.NoError(t, InnerMain("command", "1", "wait", "turn", "NW", "toggle", "broadcast", "zyx"))
|
||||
|
||||
// Give it malformed commands
|
||||
assert.Error(t, InnerMain("command", "unknown"))
|
||||
assert.Error(t, InnerMain("command", "broadcast"))
|
||||
assert.Error(t, InnerMain("command", "0", "wait"))
|
||||
assert.Error(t, InnerMain("command", "1"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue