vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood 2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537057 additions and 189681 deletions

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@ import (
)
func ExampleSlice() {
var dr *cldr.CLDR // assume this is initalized
var dr *cldr.CLDR // assume this is initialized
x, _ := dr.LDML("en")
cs := x.Collations.Collation

View file

@ -39,7 +39,7 @@ type fieldTest struct {
var testStruct = fieldTest{
Common: Common{
name: "mapping", // exclude "type" as distinguising attribute
name: "mapping", // exclude "type" as distinguishing attribute
Type: "foo",
Alt: "foo",
},

View file

@ -158,7 +158,7 @@ func TestSelectOnePerGroup(t *testing.T) {
s := MakeSlice(&sl)
s.SelectOnePerGroup(tt.attr, tt.values)
if len(sl) != len(tt.refs) {
t.Errorf("%d: found result lenght %d; want %d", i, len(sl), len(tt.refs))
t.Errorf("%d: found result length %d; want %d", i, len(sl), len(tt.refs))
continue
}
for j, e := range sl {

File diff suppressed because it is too large Load diff

View file

@ -40,7 +40,7 @@ func (f Form) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error)
}
func flushTransform(rb *reorderBuffer) bool {
// Write out (must fully fit in dst, or else it is a ErrShortDst).
// Write out (must fully fit in dst, or else it is an ErrShortDst).
if len(rb.out) < rb.nrune*utf8.UTFMax {
return false
}

View file

@ -41,7 +41,7 @@ func TestTransform(t *testing.T) {
{NFC, "qx", "", true, 1, transform.ErrShortDst},
{NFC, "a\u0300abc", "\u00e0a", true, 4, transform.ErrShortDst},
// We cannot write a segment if succesive runes could still change the result.
// We cannot write a segment if successive runes could still change the result.
{NFD, "ö", "", false, 3, transform.ErrShortSrc},
{NFC, "a\u0300", "", false, 4, transform.ErrShortSrc},
{NFD, "a\u0300", "", false, 4, transform.ErrShortSrc},
@ -68,7 +68,7 @@ func TestTransform(t *testing.T) {
t.Errorf("%d: was %+q (%v); want %+q (%v)", i, out, err, tt.out, tt.err)
}
if want := tt.f.String(tt.in)[:nDst]; want != out {
t.Errorf("%d: incorect normalization: was %+q; want %+q", i, out, want)
t.Errorf("%d: incorrect normalization: was %+q; want %+q", i, out, want)
}
}
}

View file

@ -13,12 +13,13 @@ import (
"io"
"log"
"reflect"
"sort"
"strings"
"unicode"
"golang.org/x/text/collate"
"golang.org/x/text/internal/gen"
"golang.org/x/text/internal/ucd"
"golang.org/x/text/language"
"golang.org/x/text/unicode/rangetable"
)
@ -37,8 +38,9 @@ func getVersions() []string {
log.Fatal(bootstrapMessage)
}
c := collate.New(language.Und, collate.Numeric)
versions := strings.Split(*versionList, ",")
sort.Strings(versions)
c.SortStrings(versions)
// Ensure that at least the current version is included.
for _, v := range versions {
@ -48,7 +50,7 @@ func getVersions() []string {
}
versions = append(versions, gen.UnicodeVersion())
sort.Strings(versions)
c.SortStrings(versions)
return versions
}

File diff suppressed because it is too large Load diff