structs_test.go
changeset 72 53f15893a1a7
parent 71 578c2a83dc18
child 74 e619e18dcec3
child 98 c9cc4eda6dce
--- 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)