diff options
author | Russ Cox <rsc@golang.org> | 2011-11-13 22:58:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-11-13 22:58:08 -0500 |
commit | 5bb54b8e9cd810d378397bae464f8933509e62bc (patch) | |
tree | cc49af668faa74c1f3eb55e3978e14844bc1bbc0 /test/typeswitch.go | |
parent | efb74460c366286cf17225874c7d6333542647bc (diff) | |
download | go-5bb54b8e9cd810d378397bae464f8933509e62bc.tar.gz go-5bb54b8e9cd810d378397bae464f8933509e62bc.zip |
gc: remove func, map compare
R=ken, ken
CC=golang-dev
https://golang.org/cl/5373079
Diffstat (limited to 'test/typeswitch.go')
-rw-r--r-- | test/typeswitch.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/typeswitch.go b/test/typeswitch.go index 83fb0985a9..aa911f9b62 100644 --- a/test/typeswitch.go +++ b/test/typeswitch.go @@ -82,9 +82,9 @@ func main() { case []int: assert(x[3] == 3 && i == Array, "array") case map[string]int: - assert(x == m && i == Map, "map") + assert(x != nil && i == Map, "map") case func(i int) interface{}: - assert(x == f && i == Func, "fun") + assert(x != nil && i == Func, "fun") default: assert(false, "unknown") } @@ -111,5 +111,4 @@ func main() { default: assert(false, "switch 4 unknown") } - } |