summaryrefslogtreecommitdiff
path: root/test/stringrange.go
Commit message (Collapse)AuthorAgeFilesLines
* all: make Unicode surrogate halves illegal as UTF-8Rob Pike2012-08-081-0/+7
| | | | | | | | | | | | | | | | | | | | 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 issue 3927. R=golang-dev, rsc, bsiegert CC=golang-dev http://codereview.appspot.com/6458099
* test/[n-z]*.go: add documentationRob Pike2012-02-241-0/+2
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5700056
* 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
* renaming_4: gofix -r everything/but/src/pkgRob Pike2011-11-081-1/+1
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/5338043
* cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox2011-10-251-6/+7
| | | | | | | | | | use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev http://codereview.appspot.com/5300043
* test: remove semiocolons.Rob Pike2010-09-041-27/+27
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev http://codereview.appspot.com/2157041
* fix "declared and not used" in tests;Russ Cox2009-09-141-1/+0
| | | | | | | | | also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
* fix up some irregular indentationRob Pike2009-08-171-4/+4
| | | | | | R=rsc OCL=33382 CL=33391
* change utf8.FullRuneInString and utf8.DecodeRuneInStringRuss Cox2009-05-111-1/+1
| | | | | | | | | to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
* move things out of sys into os and runtimeRuss Cox2009-05-081-1/+2
| | | | | | R=r OCL=28569 CL=28573
* fix stringrange testRuss Cox2009-04-131-1/+15
| | | | | | R=ken OCL=27353 CL=27353
* fix string range to have full unicode range (up to 10FFFF).Rob Pike2009-04-121-0/+47
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