aboutsummaryrefslogtreecommitdiff
path: root/test/stringrange.go
AgeCommit message (Collapse)Author
2012-08-08all: make Unicode surrogate halves illegal as UTF-8Rob Pike
Surrogate halves are part of UTF-16 and should never appear in UTF-8. (The rune that two combined halves represent in UTF-16 should be encoded directly.) Encoding: encode as RuneError. Decoding: convert to RuneError, consume one byte. This requires changing: package unicode/utf8 runtime for range over string Also added utf8.ValidRune and fixed bug in utf.RuneLen. Fixes #3927. R=golang-dev, rsc, bsiegert CC=golang-dev https://golang.org/cl/6458099
2012-02-24test/[n-z]*.go: add documentationRob Pike
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5700056
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
2011-11-08renaming_4: gofix -r everything/but/src/pkgRob Pike
R=rsc CC=golang-dev https://golang.org/cl/5338043
2011-10-25cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox
use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev https://golang.org/cl/5300043
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-09-14fix "declared and not used" in tests;Russ Cox
also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
2009-08-17fix up some irregular indentationRob Pike
R=rsc OCL=33382 CL=33391
2009-05-11change utf8.FullRuneInString and utf8.DecodeRuneInStringRuss Cox
to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
2009-05-08move things out of sys into os and runtimeRuss Cox
R=r OCL=28569 CL=28573
2009-04-13fix stringrange testRuss Cox
R=ken OCL=27353 CL=27353
2009-04-12fix string range to have full unicode range (up to 10FFFF).Rob Pike
add test for string range. test has minor failure: after loop the index == len(s); should be len(s)-1 in this case. according to spec, vars are left at position at last iteration. R=ken,rsc DELTA=259 (161 added, 96 deleted, 2 changed) OCL=27343 CL=27343