From 24502f7cd75442a666e16a00c9cff7e5a36390f3 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Wed, 19 Jun 2019 11:19:16 +0200 Subject: [PATCH] Expand test --- iq_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iq_test.go b/iq_test.go index bfa1c98..2138372 100644 --- a/iq_test.go +++ b/iq_test.go @@ -126,4 +126,9 @@ func TestUnmarshalPayload(t *testing.T) { if parsedIQ.Payload == nil { t.Error("Missing payload") } + + namespace := parsedIQ.Payload.Namespace() + if namespace != "jabber:iq:version" { + t.Errorf("incorrect namespace: %s", namespace) + } }