diff --git a/xmpp/iq_test.go b/xmpp/iq_test.go index 6468911..f48ea80 100644 --- a/xmpp/iq_test.go +++ b/xmpp/iq_test.go @@ -4,14 +4,18 @@ import ( "encoding/xml" "reflect" "testing" + + "github.com/processone/gox/xmpp/iot" ) func TestUnmarshalIqs(t *testing.T) { + var cs1 = new(iot.ControlSet) var tests = []struct { iqString string parsedIQ ClientIQ }{ {"", ClientIQ{XMLName: xml.Name{Space: "", Local: "iq"}, Packet: Packet{To: "test@localhost", Type: "set", Id: "1"}}}, + {"", ClientIQ{XMLName: xml.Name{Space: "jabber:client", Local: "iq"}, Packet: Packet{To: "test@localhost", From: "server", Type: "set", Id: "2"}, Payload: cs1}}, } for _, test := range tests {