--- a/structs_test.go Thu Jan 12 23:14:25 2012 -0700
+++ b/structs_test.go Mon Jan 16 20:30:29 2012 -0600
@@ -71,7 +71,7 @@
name := xml.Name{Space: NsStreams, Local: "ack"}
e := &streamError{Any: Generic{XMLName: name}}
exp := `<stream:error><ack xmlns="` + NsStreams +
- `"></ack></stream:error>`;
+ `"></ack></stream:error>`
assertMarshal(t, exp, e)
txt := errText{Lang: "pt", Text: "things happen"}
@@ -83,9 +83,8 @@
}
func TestIqMarshal(t *testing.T) {
- iq := &Iq{Type: "set", Id: "3", Nested:
- []interface{}{Generic{XMLName: xml.Name{Space: NsBind,
- Local: "bind"}}}}
+ iq := &Iq{Type: "set", Id: "3", Nested: []interface{}{Generic{XMLName: xml.Name{Space: NsBind,
+ Local: "bind"}}}}
exp := `<iq id="3" type="set"><bind xmlns="` + NsBind +
`"></bind></iq>`
assertMarshal(t, exp, iq)