equal
deleted
inserted
replaced
81 `" xml:lang="pt">things happen</text></stream:error>` |
81 `" xml:lang="pt">things happen</text></stream:error>` |
82 assertMarshal(t, exp, e) |
82 assertMarshal(t, exp, e) |
83 } |
83 } |
84 |
84 |
85 func TestIqMarshal(t *testing.T) { |
85 func TestIqMarshal(t *testing.T) { |
86 iq := &Iq{Type: "set", Id: "3", Any: &Unrecognized{XMLName: |
86 iq := &Iq{Type: "set", Id: "3", Any: &Generic{XMLName: |
87 xml.Name{Space: nsBind, Local: "bind"}}} |
87 xml.Name{Space: nsBind, Local: "bind"}}} |
88 exp := `<iq id="3" type="set"><bind xmlns="` + nsBind + |
88 exp := `<iq id="3" type="set"><bind xmlns="` + nsBind + |
89 `"></bind></iq>` |
89 `"></bind></iq>` |
90 assertMarshal(t, exp, iq) |
90 assertMarshal(t, exp, iq) |
91 } |
91 } |