mirror of
https://github.com/rclone/rclone.git
synced 2025-12-26 13:13:31 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
2842
vendor/golang.org/x/text/unicode/norm/tables.go
generated
vendored
2842
vendor/golang.org/x/text/unicode/norm/tables.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2
vendor/golang.org/x/text/unicode/norm/transform.go
generated
vendored
2
vendor/golang.org/x/text/unicode/norm/transform.go
generated
vendored
@@ -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
|
||||
}
|
||||
|
||||
4
vendor/golang.org/x/text/unicode/norm/transform_test.go
generated
vendored
4
vendor/golang.org/x/text/unicode/norm/transform_test.go
generated
vendored
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user