--- a/roster_test.go Sat Dec 31 11:39:23 2011 -0700
+++ b/roster_test.go Sat Dec 31 11:45:44 2011 -0700
@@ -14,9 +14,7 @@
// This is mostly just tests of the roster data structures.
func TestRosterIqMarshal(t *testing.T) {
- iq := &Iq{From: "from", Lang: "en", Nested:
- RosterQuery{XMLName: xml.Name{Space: NsRoster, Local:
- "query"}, Item: []RosterItem{}}}
+ iq := &Iq{From: "from", Lang: "en", Nested: RosterQuery{}}
exp := `<iq from="from" xml:lang="en"><query xmlns="` +
NsRoster + `"></query></iq>`
assertMarshal(t, exp, iq)