aboutsummaryrefslogtreecommitdiff
path: root/test/map.go
AgeCommit message (Collapse)Author
2014-08-06test/mapnan.go: add regression test for non-empty interfaces.Alan Donovan
LGTM=rsc, khr R=rsc, khr, bradfitz CC=golang-codereviews https://golang.org/cl/126720043
2013-04-07test: fix flaky NaN-key map complexity testBrad Fitzpatrick
Don't measure wall time in map.go. Keep it portable and only test NaN, but not time. Move time tests to mapnan.go and only measure user CPU time, not wall time. It builds on Darwin and Linux, the primary platforms where people hack on the runtime & in particular maps. The runtime is shared, though, so we don't need it to run on all of the platforms. Fixes flaky build failures like: http://build.golang.org/log/ba67eceefdeaa1142cb6c990a62fa3ffd8fd73f8 R=golang-dev, r CC=golang-dev https://golang.org/cl/8479043
2013-02-12test: ensure all failing tests exit nonzero.Alan Donovan
Previously merely printing an error would cause the golden file comparison (in 'bash run') to fail, but that is no longer the case with the new run.go driver. R=iant CC=golang-dev https://golang.org/cl/7310087
2012-02-23test: commentary for [h-m]*.goRob Pike
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5674112
2012-02-16test: use testlib (final 61)Russ Cox
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5671080
2012-02-16all: errors caught by go vetRob Pike
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5674069
2012-02-02test: make map nan timing test more robustBrad Fitzpatrick
take 2 R=rsc CC=golang-dev https://golang.org/cl/5617045
2012-01-30test: attempt at making a test more robustBrad Fitzpatrick
A current theory is that this test is too fast for the time resolution on the VMs where our builders run. R=rsc CC=golang-dev https://golang.org/cl/5581056
2012-01-30test: add test of NaN in mapRuss Cox
R=iant, r CC=golang-dev https://golang.org/cl/5576071
2012-01-26gc, runtime: handle floating point map keysRuss Cox
Fixes #2609. R=ken2 CC=golang-dev https://golang.org/cl/5572069
2011-01-19delete float, complex - code changesRuss Cox
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
2010-09-04test: remove semiocolons.Rob Pike
The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
2009-10-09time tests; sort -nr times.out | sed 10q is illuminating.Russ Cox
cut the slowest tests down from a few seconds to under half a second. R=r DELTA=21 (6 added, 1 deleted, 14 changed) OCL=35509 CL=35519
2009-09-15last round: non-package codeRuss Cox
R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
2009-03-23allow range on nil mapsRuss Cox
R=ken OCL=26663 CL=26663
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-13convert composite literals from { } to ( ).Russ Cox
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-01-26implement new restrictions on whatRuss Cox
can be compared/hashed. R=r DELTA=351 (201 added, 80 deleted, 70 changed) OCL=23423 CL=23481
2009-01-20delete exportRuss Cox
TBR=r OCL=23121 CL=23127
2009-01-16convert tests; nothing interesting.Russ Cox
R=r OCL=23012 CL=23014
2009-01-15convert strconvRuss Cox
R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
2009-01-15printf->Printf etc.Rob Pike
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-06new new & makeRuss Cox
R=r OCL=22166 CL=22166
2008-12-20update map test.Rob Pike
convert to printf. increase count to 1000 - maps are faster now. add cases for structure values as key and maps. R=rsc DELTA=197 (66 added, 18 deleted, 113 changed) OCL=21683 CL=21686
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox
R=r OCL=21563 CL=21571
2008-10-05bug026 and bug060 are fixed. update.Rob Pike
R=rsc DELTA=87 (37 added, 50 deleted, 0 changed) OCL=16498 CL=16507
2008-09-15update bugsRob Pike
delete bug100.go since the compiler is doing what we agreed. R=gri OCL=15367 CL=15367
2008-08-11add test for maps.Rob Pike
R=gri OCL=14090 CL=14090