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 c92b8e7..65a50dd 100644 --- a/chat/chat_test.go +++ b/chat/chat_test.go @@ -22,6 +22,10 @@ func TestJoining(t *testing.T) { t.Fatalf("Got error \"%s\", expected \"%s\"", err, EmptyNick) } + if _, _, err = Join("test", "abcdefghijklmnopqrstuvwxyz"); err != NickTooLong { + t.Fatalf("Got error \"%s\", expected \"%s\"", err, NickTooLong) + } + b2, r2, err := Join("test", "Bar") if err != nil { t.Fatalf("Could not join room a second time: %s", err) |