diff options
Diffstat (limited to 'src/pkg/exp/datafmt/datafmt_test.go')
-rw-r--r-- | src/pkg/exp/datafmt/datafmt_test.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/pkg/exp/datafmt/datafmt_test.go b/src/pkg/exp/datafmt/datafmt_test.go index b109bca6e..908894717 100644 --- a/src/pkg/exp/datafmt/datafmt_test.go +++ b/src/pkg/exp/datafmt/datafmt_test.go @@ -20,7 +20,7 @@ func parse(t *testing.T, form string, fmap FormatterMap) Format { } -func verify(t *testing.T, f Format, expected string, args ...) { +func verify(t *testing.T, f Format, expected string, args ...interface{}) { if f == nil { return // allow other tests to run } @@ -92,7 +92,7 @@ func TestCustomFormatters(t *testing.T) { // ---------------------------------------------------------------------------- // Formatting of basic and simple composite types -func check(t *testing.T, form, expected string, args ...) { +func check(t *testing.T, form, expected string, args ...interface{}) { f := parse(t, form, nil) if f == nil { return // allow other tests to run @@ -177,16 +177,6 @@ func TestFuncTypes(t *testing.T) { } -func TestInterfaceTypes(t *testing.T) { - var i0 interface{} - check(t, `interface="interface"`, `interface`, i0) - - i0 = "foo" - check(t, `interface="interface"`, `interface`, i0) - check(t, `interface=*; string="%s"`, `foo`, i0) -} - - func TestMapTypes(t *testing.T) { var m0 map[string]int check(t, `map="map"`, `map`, m0) |