summaryrefslogtreecommitdiff
path: root/test/map.go
Commit message (Collapse)AuthorAgeFilesLines
* test/mapnan.go: add regression test for non-empty interfaces.Alan Donovan2014-08-061-1/+1
| | | | | | | LGTM=rsc, khr R=rsc, khr, bradfitz CC=golang-codereviews https://codereview.appspot.com/126720043
* test: fix flaky NaN-key map complexity testBrad Fitzpatrick2013-04-071-34/+21
| | | | | | | | | | | | | | | | | | 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://codereview.appspot.com/8479043
* test: ensure all failing tests exit nonzero.Alan Donovan2013-02-121-112/+116
| | | | | | | | | | 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://codereview.appspot.com/7310087
* test: commentary for [h-m]*.goRob Pike2012-02-231-0/+2
| | | | | | R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5674112
* test: use testlib (final 61)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | 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 http://codereview.appspot.com/5671080
* all: errors caught by go vetRob Pike2012-02-161-1/+1
| | | | | | R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5674069
* test: make map nan timing test more robustBrad Fitzpatrick2012-02-021-5/+20
| | | | | | | | take 2 R=rsc CC=golang-dev http://codereview.appspot.com/5617045
* test: attempt at making a test more robustBrad Fitzpatrick2012-01-301-1/+1
| | | | | | | | | 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 http://codereview.appspot.com/5581056
* test: add test of NaN in mapRuss Cox2012-01-301-2/+30
| | | | | | R=iant, r CC=golang-dev http://codereview.appspot.com/5576071
* gc, runtime: handle floating point map keysRuss Cox2012-01-261-0/+157
| | | | | | | | Fixes issue 2609. R=ken2 CC=golang-dev http://codereview.appspot.com/5572069
* delete float, complex - code changesRuss Cox2011-01-191-84/+83
| | | | | | | | | | | also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev http://codereview.appspot.com/3991043
* test: remove semiocolons.Rob Pike2010-09-041-206/+206
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev http://codereview.appspot.com/2157041
* time tests; sort -nr times.out | sed 10q is illuminating.Russ Cox2009-10-091-4/+3
| | | | | | | | | | 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
* last round: non-package codeRuss Cox2009-09-151-57/+54
| | | | | | | R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
* allow range on nil mapsRuss Cox2009-03-231-0/+6
| | | | | | R=ken OCL=26663 CL=26663
* Automated g4 rollback of changelist 25024,Russ Cox2009-03-031-7/+7
| | | | | | | | | | plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
* convert composite literals from { } to ( ).Russ Cox2009-02-131-7/+7
| | | | | | | | | | only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
* implement new restrictions on whatRuss Cox2009-01-261-34/+34
| | | | | | | | | can be compared/hashed. R=r DELTA=351 (201 added, 80 deleted, 70 changed) OCL=23423 CL=23481
* delete exportRuss Cox2009-01-201-1/+1
| | | | | | TBR=r OCL=23121 CL=23127
* convert tests; nothing interesting.Russ Cox2009-01-161-1/+1
| | | | | | R=r OCL=23012 CL=23014
* convert strconvRuss Cox2009-01-151-7/+7
| | | | | | | R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
* printf->Printf etc.Rob Pike2009-01-151-85/+85
| | | | | | | | | 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
* new new & makeRuss Cox2009-01-061-18/+23
| | | | | | R=r OCL=22166 CL=22166
* update map test.Rob Pike2008-12-201-120/+168
| | | | | | | | | | | 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
* change *map to map; *chan to chan; new(T) to new(*T)Russ Cox2008-12-191-8/+8
| | | | | | | | fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
* convert *[] to [].Russ Cox2008-12-181-2/+2
| | | | | | R=r OCL=21563 CL=21571
* bug026 and bug060 are fixed. update.Rob Pike2008-10-051-2/+0
| | | | | | | R=rsc DELTA=87 (37 added, 50 deleted, 0 changed) OCL=16498 CL=16507
* update bugsRob Pike2008-09-151-95/+3
| | | | | | | | delete bug100.go since the compiler is doing what we agreed. R=gri OCL=15367 CL=15367
* add test for maps.Rob Pike2008-08-111-0/+531
R=gri OCL=14090 CL=14090