From b5d4cffd152cb3194f78c17df7bcf8dcde697947 Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Thu, 1 Mar 2012 15:20:13 -0300 Subject: [PATCH] encoding/xml: fix xml test tag usage No real problem. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5717049 --- src/pkg/encoding/xml/marshal_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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, -- 2.50.0