diff --git a/src/pkg/encoding/xml/marshal_test.go b/src/pkg/encoding/xml/marshal_test.go index 9170fccd24..b6978a1e65 100644 --- a/src/pkg/encoding/xml/marshal_test.go +++ b/src/pkg/encoding/xml/marshal_test.go @@ -136,12 +136,12 @@ type NamePrecedence struct { type XMLNameWithTag struct { XMLName Name `xml:"InXMLNameTag"` - Value string ",chardata" + Value string `xml:",chardata"` } type XMLNameWithoutTag struct { XMLName Name - Value string ",chardata" + Value string `xml:",chardata"` } type NameInField struct { @@ -532,9 +532,9 @@ var marshalTests = []struct { InFieldName: "D", }, ExpectXML: `` + - `A` + - `B` + - `C` + + `A` + + `B` + + `C` + `D` + ``, MarshalOnly: true, @@ -548,9 +548,9 @@ var marshalTests = []struct { InFieldName: "D", }, ExpectXML: `` + - `A` + - `B` + - `C` + + `A` + + `B` + + `C` + `D` + ``, UnmarshalOnly: true,