mirror of
https://github.com/rclone/rclone.git
synced 2025-08-23 19:36:08 +02:00
lib/encoder: add EncodeRaw
This commit is contained in:
@@ -230,7 +230,7 @@ func main() {
|
||||
}
|
||||
in, out := buildTestString(
|
||||
[]mapping{getMapping(m.mask)}, // pick
|
||||
[]mapping{getMapping(0)}, // quote
|
||||
[]mapping{getMapping(encoder.EncodeZero)}, // quote
|
||||
printables, fullwidthPrintables, encodables, encoded, greek) // fill
|
||||
fatalW(fmt.Fprintf(fd, `{ // %d
|
||||
mask: %s,
|
||||
@@ -262,7 +262,7 @@ var testCasesSingleEdge = []testCase{
|
||||
for idx, orig := range e.orig {
|
||||
replace := e.replace[idx]
|
||||
pairs := buildEdgeTestString(
|
||||
[]edge{e}, []mapping{getMapping(0), getMapping(m.mask)}, // quote
|
||||
[]edge{e}, []mapping{getMapping(encoder.EncodeZero), getMapping(m.mask)}, // quote
|
||||
[][]rune{printables, fullwidthPrintables, encodables, encoded, greek}, // fill
|
||||
func(rIn, rOut []rune, quoteOut []bool, testMappings []mapping) (out []stringPair) {
|
||||
testL := len(rIn)
|
||||
@@ -386,7 +386,7 @@ var testCasesDoubleEdge = []testCase{
|
||||
orig, replace := e1.orig[0], e1.replace[0]
|
||||
edges := []edge{e1, e2}
|
||||
pairs := buildEdgeTestString(
|
||||
edges, []mapping{getMapping(0), getMapping(m.mask)}, // quote
|
||||
edges, []mapping{getMapping(encoder.EncodeZero), getMapping(m.mask)}, // quote
|
||||
[][]rune{printables, fullwidthPrintables, encodables, encoded, greek}, // fill
|
||||
func(rIn, rOut []rune, quoteOut []bool, testMappings []mapping) (out []stringPair) {
|
||||
testL := len(rIn)
|
||||
|
Reference in New Issue
Block a user