From 8965adcdbc5ccf30afdccac31cc3a6f9d7451b91 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 27 Jun 2023 15:51:09 +0200 Subject: Apply go fmt --- xmpp/jid_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'xmpp/jid_test.go') diff --git a/xmpp/jid_test.go b/xmpp/jid_test.go index 6f8b9fd..7b6874a 100644 --- a/xmpp/jid_test.go +++ b/xmpp/jid_test.go @@ -7,13 +7,13 @@ import ( func TestDomainpart(t *testing.T) { var data = map[string]string{ "user@example.org/ressource": "example.org", - "example.org/ressource": "example.org", - "user@example.org": "example.org", - "example.org": "example.org", - "test.eu": "test.eu", + "example.org/ressource": "example.org", + "user@example.org": "example.org", + "example.org": "example.org", + "test.eu": "test.eu", } - for k, v := range(data) { + for k, v := range data { if domainpart(k) != v { t.Fatalf("Domain part of JID '%s' is not '%s'!", k, v) } @@ -23,14 +23,14 @@ func TestDomainpart(t *testing.T) { func TestUsername(t *testing.T) { var data = map[string]string{ "user@example.org/ressource": "user", - "example.org/ressource": "", - "user@example.org": "user", - "df%§df?LÖ@example.org": "df%§df?LÖ", - "example.org": "", - "test.eu": "", + "example.org/ressource": "", + "user@example.org": "user", + "df%§df?LÖ@example.org": "df%§df?LÖ", + "example.org": "", + "test.eu": "", } - for k, v := range(data) { + for k, v := range data { if username(k) != v { t.Fatalf("Username of JID '%s' is not '%s'!", k, v) } -- cgit v1.2.3-70-g09d2