From b757d264230d65f988e08158e096a09497d39eb4 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Wed, 3 Aug 2011 17:26:15 +0200 Subject: Imported Upstream version 2011.07.29 --- src/pkg/reflect/all_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pkg/reflect/all_test.go') diff --git a/src/pkg/reflect/all_test.go b/src/pkg/reflect/all_test.go index 34d74b37a..257278e8f 100644 --- a/src/pkg/reflect/all_test.go +++ b/src/pkg/reflect/all_test.go @@ -380,7 +380,6 @@ func TestMapSetNil(t *testing.T) { } } - func TestAll(t *testing.T) { testType(t, 1, TypeOf((int8)(0)), "int8") testType(t, 2, TypeOf((*int8)(nil)).Elem(), "int8") @@ -744,7 +743,6 @@ func TestDeepEqualUnexportedMap(t *testing.T) { } } - func check2ndField(x interface{}, offs uintptr, t *testing.T) { s := ValueOf(x) f := s.Type().Field(1) @@ -1329,8 +1327,8 @@ func TestImportPath(t *testing.T) { } } -func TestDotDotDot(t *testing.T) { - // Test example from FuncType.DotDotDot documentation. +func TestVariadicType(t *testing.T) { + // Test example from Type documentation. var f func(x int, y ...float64) typ := TypeOf(f) if typ.NumIn() == 2 && typ.In(0) == TypeOf(int(0)) { -- cgit v1.2.3