From 7279153a0c8562143d82c8a3f7e48e8dd1543d93 Mon Sep 17 00:00:00 2001 From: Thomas Gardner Date: Sat, 16 Apr 2016 12:22:17 +1000 Subject: [PATCH] commands/cli: Add a test for 3e8244 License: MIT Signed-off-by: Thomas Gardner --- commands/cli/parse_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/cli/parse_test.go b/commands/cli/parse_test.go index d092d2f90..5b86a3f24 100644 --- a/commands/cli/parse_test.go +++ b/commands/cli/parse_test.go @@ -134,6 +134,7 @@ func TestOptionParsing(t *testing.T) { test("-b test false", kvs{"b": true}, words{"false"}) test("-b --string foo test bar", kvs{"b": true, "string": "foo"}, words{"bar"}) test("-b=false --string bar", kvs{"b": false, "string": "bar"}, words{}) + testFail("foo test") } func TestArgumentParsing(t *testing.T) {