summaryrefslogtreecommitdiff
path: root/test/bigalg.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-26 09:56:42 -0800
committerRuss Cox <rsc@golang.org>2009-01-26 09:56:42 -0800
commitdabd267bd4b8c5b87bec12ec493c0ad79fcd842c (patch)
tree0527d7d0346358f9ef8027efed0a9c5fea057641 /test/bigalg.go
parentf8891a0173bb818ae47a242f626ea6d970ebdf89 (diff)
downloadgo-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.go20
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();
}