The current tests contain a bug in the priming of funnyString; the subslicing leaves the resulting content slice with a capacity greater than its length. This allowed a bug ToUTF16Column to sneak through where we were not using 0-based column as the offset within the line. Fix the priming of funnyString, and fix the implementation of ToUTF16Column. Change-Id: I2618878d85bba26f52f99a3fc136ad21fe198dfc Reviewed-on: https://go-review.googlesource.com/c/tools/+/174357 Reviewed-by: Ian Cottrell <iancottrell@google.com> Run-TryBot: Ian Cottrell <iancottrell@google.com> |
||
|---|---|---|
| .. | ||
| parse.go | ||
| span.go | ||
| span_test.go | ||
| token.go | ||
| token111.go | ||
| token112.go | ||
| token_test.go | ||
| uri.go | ||
| uri_test.go | ||
| utf16.go | ||
| utf16_test.go | ||