diff options
author | Russ Cox <rsc@golang.org> | 2009-01-26 09:56:42 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-26 09:56:42 -0800 |
commit | dabd267bd4b8c5b87bec12ec493c0ad79fcd842c (patch) | |
tree | 0527d7d0346358f9ef8027efed0a9c5fea057641 /test/bigalg.go | |
parent | f8891a0173bb818ae47a242f626ea6d970ebdf89 (diff) | |
download | go-dabd267bd4b8c5b87bec12ec493c0ad79fcd842c.tar.gz |
implement new restrictions on what
can be compared/hashed.
R=r
DELTA=351 (201 added, 80 deleted, 70 changed)
OCL=23423
CL=23481
Diffstat (limited to 'test/bigalg.go')
-rw-r--r-- | test/bigalg.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/bigalg.go b/test/bigalg.go index 434eecf5d..afeccdf8f 100644 --- a/test/bigalg.go +++ b/test/bigalg.go @@ -62,25 +62,6 @@ func maptest() { } } -var mt1 = make(map[T]int) -var ma1 = make(map[[]int] int) - -func maptest2() { - mt1[t] = 123; - t1 := t; - val, ok := mt1[t1]; - if val != 123 || !ok { - println("fail: map key struct", val, ok); - } - - ma1[a] = 345; - a1 := a; - val, ok = ma1[a1]; - if val != 345 || !ok { - panic("map key array", val, ok); - } -} - var ct = make(chan T) var ca = make(chan []int) @@ -136,7 +117,6 @@ func interfacetest() { func main() { arraycmptest(); maptest(); - maptest2(); chantest(); interfacetest(); } |