Commit a8fc65fd authored by ForrestWeston's avatar ForrestWeston

Added tests from code-review

License: MIT
Signed-off-by: default avatarForrestWeston <Forrest.Weston@gmail.com>
parent 01239147
......@@ -125,6 +125,10 @@ func TestOptionParsing(t *testing.T) {
test("--bool=false foo", kvs{"bool": false}, words{"foo"})
test("-b=FaLsE foo", kvs{"b": false}, words{"foo"})
test("-b=TrUe foo", kvs{"b": true}, words{"foo"})
test("-b true", kvs{"b": true}, words{"true"})
test("-b false", kvs{"b": true}, words{"false"})
test("-b --string foo bar", kvs{"b": true, "string": "foo"}, words{"bar"})
test("-b=false --string bar", kvs{"b": false, "string": "bar"}, words{})
}
func TestArgumentParsing(t *testing.T) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment