summaryrefslogtreecommitdiff
path: root/cli_args_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli_args_test.go')
-rw-r--r--cli_args_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli_args_test.go b/cli_args_test.go
index dd5dcd1..8e5ae3d 100644
--- a/cli_args_test.go
+++ b/cli_args_test.go
@@ -77,3 +77,14 @@ func TestPrefixOArgs(t *testing.T) {
}
}
}
+
+func TestStringSlice(t *testing.T) {
+ var s multipleStrings
+ s.Set("foo")
+ s.Set("bar")
+ want := "[foo bar]"
+ have := s.String()
+ if want != have {
+ t.Errorf("Wrong string representation: want=%q have=%q", want, have)
+ }
+}