Add test cases for config get/set with wrong argc

reverse-scroll
nirenjan 2022-04-08 00:16:39 -07:00
parent 33e940606c
commit 0f7cd3fdb3
1 changed files with 16 additions and 0 deletions

View File

@ -61,3 +61,19 @@ ERR "Unknown subcommand '' for 'config' command"
Config command with unknown subcommand
config foo
ERR "Unknown subcommand 'foo' for 'config' command"
Get configuration with fewer arguments
config get
ERR "Unexpected arguments for 'config get' command; got 2, expected 4"
Get configuration with extra arguments
config get foo bar baz
ERR "Unexpected arguments for 'config get' command; got 5, expected 4"
Set configuration with fewer arguments
config set
ERR "Unexpected arguments for 'config set' command; got 2, expected 5"
Set configuration with extra arguments
config set foo bar baz quux
ERR "Unexpected arguments for 'config set' command; got 6, expected 5"