summaryrefslogtreecommitdiff
path: root/test/range.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/gc: implement 'for range x {'Russ Cox2014-07-161-0/+92
| | | | | | | | | Fixes issue 6102. LGTM=gri R=ken, r, gri CC=golang-codereviews https://codereview.appspot.com/113120043
* test: a number of fixes.Alan Donovan2013-02-111-11/+11
| | | | | | | | | | | | | Details: - reorder.go: delete p8. (Once expectation is changed per b/4627 it is identical to p1.) - switch.go: added some more (degenerate) switches. - range.go: improved error messages in a few cases. - method.go: added tests of calls to promoted methods. R=iant CC=golang-dev https://codereview.appspot.com/7306087
* cmd/gc: fix parallel assignment in rangeRuss Cox2012-05-241-0/+11
| | | | | | | | | | | | | | for expr1, expr2 = range slice was assigning to expr1 and expr2 in sequence instead of in parallel. Now it assigns in parallel, as it should. This matters for things like for i, x[i] = range slice. Fixes issue 3464. R=ken2 CC=golang-dev http://codereview.appspot.com/6252048
* test/[n-r]*.go: add documentationRob Pike2012-02-241-0/+2
| | | | | | | | The rename ones needed redoing. R=golang-dev, bradfitz, rsc CC=golang-dev http://codereview.appspot.com/5698054
* 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
* cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox2011-10-251-2/+2
| | | | | | | | | | use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev http://codereview.appspot.com/5300043
* gc: implement new len spec, range bug fix, optimizationRuss Cox2010-07-011-2/+197
| | | | | | | | Fixes issue 885. R=ken2 CC=golang-dev http://codereview.appspot.com/1680048
* delete all uses of panicln by rewriting them using panic or,Rob Pike2010-03-241-22/+31
| | | | | | | | | in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
* Test evaluation of range variables.Ian Lance Taylor2010-01-151-0/+34
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/189088
* last round: non-package codeRuss Cox2009-09-151-1/+1
| | | | | | | R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
* range over channels.Russ Cox2009-03-201-0/+59
also fix multiple-evaluation bug in range over arrays. R=ken OCL=26576 CL=26576