@cryptotaxi247 / kubo / commits / a8fc65fda

Added tests from code-review

License: MIT Signed-off-by: ForrestWeston <Forrest.Weston@gmail.com>

ForrestWeston committed Oct 13, 2015 at 17:09 UTC a8fc65fda014839a3de688208aa899109d22f422
1 file changed +4
commands/cli/parse_test.go
+4
@@ -125,6 +125,10 @@ func TestOptionParsing(t *testing.T) {
125 test("--bool=false foo", kvs{"bool": false}, words{"foo"})
126 test("-b=FaLsE foo", kvs{"b": false}, words{"foo"})
127 test("-b=TrUe foo", kvs{"b": true}, words{"foo"})
128 + test("-b true", kvs{"b": true}, words{"true"})
129 + test("-b false", kvs{"b": true}, words{"false"})
130 + test("-b --string foo bar", kvs{"b": true, "string": "foo"}, words{"bar"})
131 + test("-b=false --string bar", kvs{"b": false, "string": "bar"}, words{})
132 }
133
134 func TestArgumentParsing(t *testing.T) {