|
|
@ -237,19 +237,22 @@ func TestGenXMLNamespace(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
func TestBstrUnmarshal(t *testing.T) {
|
|
|
|
func TestBstrUnmarshal(t *testing.T) {
|
|
|
|
bstrs := map[string]string{
|
|
|
|
bstrs := map[string]string{
|
|
|
|
"*_x0000_": "*",
|
|
|
|
|
|
|
|
"*": "*",
|
|
|
|
"*": "*",
|
|
|
|
|
|
|
|
"*_x0000_": "*",
|
|
|
|
"*_x0008_": "*",
|
|
|
|
"*_x0008_": "*",
|
|
|
|
"_x0008_*": "*",
|
|
|
|
"_x0008_*": "*",
|
|
|
|
"*_x0008_*": "**",
|
|
|
|
"*_x0008_*": "**",
|
|
|
|
"*_x4F60__x597D_": "*你好",
|
|
|
|
"*_x4F60__x597D_": "*你好",
|
|
|
|
|
|
|
|
"*_xG000_": "*_xG000_",
|
|
|
|
|
|
|
|
"*_xG05F_x0001_*": "*_xG05F*",
|
|
|
|
"*_x005F__x0008_*": "*_x005F_*",
|
|
|
|
"*_x005F__x0008_*": "*_x005F_*",
|
|
|
|
"*_x005F_x0001_*": "*_x0001_*",
|
|
|
|
"*_x005F_x0001_*": "*_x0001_*",
|
|
|
|
|
|
|
|
"*_x005f_x005F__x0008_*": "*_x005F_*",
|
|
|
|
|
|
|
|
"*_x005F_x005F_xG05F_x0006_*": "*_x005F_xG05F*",
|
|
|
|
"*_x005F_x005F_x005F_x0006_*": "*_x005F_x0006_*",
|
|
|
|
"*_x005F_x005F_x005F_x0006_*": "*_x005F_x0006_*",
|
|
|
|
"_x005F__x0008_******": "_x005F_******",
|
|
|
|
"_x005F__x0008_******": "_x005F_******",
|
|
|
|
"******_x005F__x0008_": "******_x005F_",
|
|
|
|
"******_x005F__x0008_": "******_x005F_",
|
|
|
|
"******_x005F__x0008_******": "******_x005F_******",
|
|
|
|
"******_x005F__x0008_******": "******_x005F_******",
|
|
|
|
"*_x005F_x005F__x0008_*": "*_x005F_*",
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for bstr, expected := range bstrs {
|
|
|
|
for bstr, expected := range bstrs {
|
|
|
|
assert.Equal(t, expected, bstrUnmarshal(bstr))
|
|
|
|
assert.Equal(t, expected, bstrUnmarshal(bstr))
|
|
|
|