structs_test.go
changeset 7 4f0f66f9a441
parent 6 8e425e340ca1
child 12 122ab6208c3c
--- a/structs_test.go	Sun Dec 25 18:46:13 2011 -0700
+++ b/structs_test.go	Sun Dec 25 19:02:53 2011 -0700
@@ -69,13 +69,13 @@
 
 func TestStreamErrorMarshal(t *testing.T) {
 	name := xml.Name{Space: nsStreams, Local: "ack"}
-	e := &StreamError{Any: definedCondition{name}}
+	e := &StreamError{Any: definedCondition{XMLName: name}}
 	exp := `<stream:error><ack xmlns="` + nsStreams +
 		`"></ack></stream:error>`;
 	assertMarshal(t, exp, e)
 
 	txt := errText{Lang: "pt", Text: "things happen"}
-	e = &StreamError{Any: definedCondition{name}, Text: &txt}
+	e = &StreamError{Any: definedCondition{XMLName: name}, Text: &txt}
 	exp = `<stream:error><ack xmlns="` + nsStreams +
 		`"></ack><text xmlns="` + nsStreams +
 		`" xml:lang="pt">things happen</text></stream:error>`