summaryrefslogtreecommitdiff
path: root/src/pkg/reflect/all_test.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-05-04 15:46:02 +0200
committerOndřej Surý <ondrej@sury.org>2011-05-04 15:46:02 +0200
commitad811fbb8897a9a3063274e927133915941f1dca (patch)
tree3df18657e50a0313ed6defcda30e4474cb28a467 /src/pkg/reflect/all_test.go
parent14cda8f405d55947c0a3fae0852b04af8405eae0 (diff)
downloadgolang-ad811fbb8897a9a3063274e927133915941f1dca.tar.gz
Imported Upstream version 2011.04.27upstream-weekly/2011.04.27
Diffstat (limited to 'src/pkg/reflect/all_test.go')
-rw-r--r--src/pkg/reflect/all_test.go22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/pkg/reflect/all_test.go b/src/pkg/reflect/all_test.go
index dee3f4915..5bf65333c 100644
--- a/src/pkg/reflect/all_test.go
+++ b/src/pkg/reflect/all_test.go
@@ -182,9 +182,7 @@ var valueTests = []pair{
}),
"struct { c chan *int32; d float32 }{chan *int32, 0}",
},
- {new(struct {
- c func(chan *integer, *int8)
- }),
+ {new(struct{ c func(chan *integer, *int8) }),
"struct { c func(chan *reflect_test.integer, *int8) }{func(chan *reflect_test.integer, *int8)(0)}",
},
{new(struct {
@@ -734,24 +732,6 @@ func TestDeepEqualComplexStructInequality(t *testing.T) {
}
}
-type UnexpT struct {
- m map[int]int
-}
-
-func TestDeepEqualUnexportedMap(t *testing.T) {
- // Check that DeepEqual can look at unexported fields.
- x1 := UnexpT{map[int]int{1: 2}}
- x2 := UnexpT{map[int]int{1: 2}}
- if !DeepEqual(&x1, &x2) {
- t.Error("DeepEqual(x1, x2) = false, want true")
- }
-
- y1 := UnexpT{map[int]int{2: 3}}
- if DeepEqual(&x1, &y1) {
- t.Error("DeepEqual(x1, y1) = true, want false")
- }
-}
-
func check2ndField(x interface{}, offs uintptr, t *testing.T) {
s := ValueOf(x)