3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
20 for i := 0; i < 6; i++ {
24 for w, i, j := 0, 0, 0; i < l; i += w {
26 r, w = utf8.DecodeRuneInString(s[i:len(s)])
28 panic("zero width in string")
31 panic("wrong value from string")
35 // encoded as bytes: 'a' 'b' 'c' e6 97 a5 e6 9c ac e8 aa 9e
38 panic("wrong length constructing array")
53 for w, i, j := 0, 0, 0; i < L; i += w {
55 r, w = utf8.DecodeRune(a[i:L])
57 panic("zero width in bytes")
60 panic("wrong value from bytes")