structs_test.go
changeset 31 1dc47df5c99f
parent 26 4d0a369079ce
child 34 7b1f924c75e2
--- a/structs_test.go	Thu Dec 29 11:11:18 2011 -0700
+++ b/structs_test.go	Thu Dec 29 11:17:52 2011 -0700
@@ -69,13 +69,13 @@
 
 func TestStreamErrorMarshal(t *testing.T) {
 	name := xml.Name{Space: nsStreams, Local: "ack"}
-	e := &StreamError{Any: Generic{XMLName: name}}
+	e := &streamError{Any: Generic{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: Generic{XMLName: name}, Text: &txt}
+	e = &streamError{Any: Generic{XMLName: name}, Text: &txt}
 	exp = `<stream:error><ack xmlns="` + nsStreams +
 		`"></ack><text xmlns="` + nsStreams +
 		`" xml:lang="pt">things happen</text></stream:error>`