diff options
author | xengineering <me@xengineering.eu> | 2023-06-27 15:51:09 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-27 15:51:09 +0200 |
commit | 8965adcdbc5ccf30afdccac31cc3a6f9d7451b91 (patch) | |
tree | 1a33b14bf505ebca382afd5dfa789f5e8117b285 /xmpp/jid_test.go | |
parent | d27744d56b41aa9dd68502bd529dbf3fc083ed1d (diff) | |
download | limox-8965adcdbc5ccf30afdccac31cc3a6f9d7451b91.tar limox-8965adcdbc5ccf30afdccac31cc3a6f9d7451b91.tar.zst limox-8965adcdbc5ccf30afdccac31cc3a6f9d7451b91.zip |
Apply go fmt
Diffstat (limited to 'xmpp/jid_test.go')
-rw-r--r-- | xmpp/jid_test.go | 22 |
1 files changed, 11 insertions, 11 deletions
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) } |