From 463f6e8962d87bf45dccd806822d40cfff335695 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 10 Aug 2021 19:09:58 +0200 Subject: main: take advantage of pflag slice types Our multipleStrings type is now built in. --- cli_args_test.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'cli_args_test.go') diff --git a/cli_args_test.go b/cli_args_test.go index eee3659..6dff1f1 100644 --- a/cli_args_test.go +++ b/cli_args_test.go @@ -75,14 +75,3 @@ 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) - } -} -- cgit v1.2.3