summaryrefslogtreecommitdiff
path: root/xmpp/jid_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/jid_test.go')
-rw-r--r--xmpp/jid_test.go22
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)
}