equal
deleted
inserted
replaced
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 } |
47 } |
47 } |
48 if len(rq.Item) != 1 { |
48 if len(rq.Item) != 1 { |
49 t.Fatalf("Wrong # items: %v", rq.Item) |
49 t.Fatalf("Wrong # items: %v", rq.Item) |
50 } |
50 } |
51 item := rq.Item[0] |
51 item := rq.Item[0] |
52 assertEquals(t, "a@b.c", item.Jid) |
52 assertEquals(t, "a@b.c", string(item.Jid)) |
53 } |
53 } |