From 62fc9a407e5da772197bd74c1b1d6f8b72d29042 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Wed, 4 Oct 2017 16:42:00 -0400 Subject: [PATCH] Expand test --- xmpp/iq_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 {