~samwhited/xmpp

edb444ffcf69b37a24615f9d5aee0f1f7a35c69f — Sam Whited 5 years ago 67ab737
Add field names to struct in test
1 files changed, 1 insertions(+), 1 deletions(-)

M jid/jid_test.go
M jid/jid_test.go => jid/jid_test.go +1 -1
@@ 214,7 214,7 @@ func TestMarshalXML(t *testing.T) {
	// Test encoding with a custom element
	j = MustParse("feste@shakespeare.lit/ilyria")
	var buf bytes.Buffer
	start := xml.StartElement{xml.Name{Space: "", Local: "item"}, []xml.Attr{}}
	start := xml.StartElement{Name: xml.Name{Space: "", Local: "item"}, Attr: []xml.Attr{}}
	e := xml.NewEncoder(&buf)
	err = e.EncodeElement(j, start)
	switch expected := `<item>feste@shakespeare.lit/ilyria</item>`; {