From: Gustavo Niemeyer Date: Thu, 1 Mar 2012 18:20:13 +0000 (-0300) Subject: encoding/xml: fix xml test tag usage X-Git-Tag: weekly.2012-03-04~52 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b5d4cffd152cb3194f78c17df7bcf8dcde697947;p=gostls13.git encoding/xml: fix xml test tag usage No real problem. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5717049 --- 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,