mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-27 16:10:00 -07:00
Add a missing trailing 'e' to the encoding of maps
This commit is contained in:
@@ -25,13 +25,7 @@ var tests = []struct {
|
||||
{[]string{"one", "two"}, "l3:one3:twoe"},
|
||||
{[]string{}, "le"},
|
||||
|
||||
{
|
||||
map[string]interface{}{
|
||||
"one": "aa",
|
||||
"two": "bb",
|
||||
},
|
||||
"d3:one2:aa3:two2:bbe",
|
||||
},
|
||||
{map[string]interface{}{"one": "aa", "two": "bb"}, "d3:one2:aa3:two2:bbe"},
|
||||
{map[string]interface{}{}, "de"},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user