diff options
Diffstat (limited to 'chat/chat_test.go')
-rw-r--r-- | chat/chat_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chat/chat_test.go b/chat/chat_test.go index 03cc948..c92b8e7 100644 --- a/chat/chat_test.go +++ b/chat/chat_test.go @@ -18,6 +18,10 @@ func TestJoining(t *testing.T) { t.Fatalf("Got error \"%s\", expected \"%s\"", err, NickAlreadyInUse) } + if _, _, err = Join("test", ""); err != EmptyNick { + t.Fatalf("Got error \"%s\", expected \"%s\"", err, EmptyNick) + } + b2, r2, err := Join("test", "Bar") if err != nil { t.Fatalf("Could not join room a second time: %s", err) |