xmpp/roster_test.go
changeset 180 3010996c1928
parent 142 0ff033eed887
child 181 750bc33ccdda
equal deleted inserted replaced
179:4477c9f31f43 180:3010996c1928
    27 	err := parseExtended(&iq.Header, m)
    27 	err := parseExtended(&iq.Header, m)
    28 	if err != nil {
    28 	if err != nil {
    29 		t.Fatalf("parseExtended: %v", err)
    29 		t.Fatalf("parseExtended: %v", err)
    30 	}
    30 	}
    31 	assertEquals(t, "iq", iq.XMLName.Local)
    31 	assertEquals(t, "iq", iq.XMLName.Local)
    32 	assertEquals(t, "from", iq.From)
    32 	assertEquals(t, "from", string(iq.From))
    33 	assertEquals(t, "en", iq.Lang)
    33 	assertEquals(t, "en", iq.Lang)
    34 	nested := iq.Nested
    34 	nested := iq.Nested
    35 	if nested == nil {
    35 	if nested == nil {
    36 		t.Fatalf("nested nil")
    36 		t.Fatalf("nested nil")
    37 	}
    37 	}