diff -r faef59c8db05 -r 8e425e340ca1 structs_test.go --- a/structs_test.go Sat Dec 24 13:11:36 2011 -0700 +++ b/structs_test.go Sun Dec 25 18:46:13 2011 -0700 @@ -50,28 +50,32 @@ } func TestStreamMarshal(t *testing.T) { - s := &Stream{to: "bob"} - exp := `` + s := &Stream{To: "bob"} + exp := `` assertMarshal(t, exp, s) - s = &Stream{to: "bob", from: "alice", id: "#3", version: "5.3"} - exp = `` + s = &Stream{To: "bob", From: "alice", Id: "#3", Version: "5.3"} + exp = `` assertMarshal(t, exp, s) - s = &Stream{lang: "en_US"} - exp = `` + s = &Stream{Lang: "en_US"} + exp = `` assertMarshal(t, exp, s) } func TestStreamErrorMarshal(t *testing.T) { name := xml.Name{Space: nsStreams, Local: "ack"} - e := &StreamError{cond: definedCondition{name}} + e := &StreamError{Any: definedCondition{name}} exp := ``; assertMarshal(t, exp, e) - txt := errText{Lang: "pt", text: "things happen"} - e = &StreamError{cond: definedCondition{name}, text: &txt} + txt := errText{Lang: "pt", Text: "things happen"} + e = &StreamError{Any: definedCondition{name}, Text: &txt} exp = `things happen`