|
@ -8,7 +8,7 @@ import ( |
|
|
"git.aiterp.net/gisle/irc/internal/irctest" |
|
|
"git.aiterp.net/gisle/irc/internal/irctest" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func TestClientInteraction(t *testing.T) { |
|
|
|
|
|
|
|
|
func TestClient(t *testing.T) { |
|
|
client := irc.New(context.Background(), irc.Config{ |
|
|
client := irc.New(context.Background(), irc.Config{ |
|
|
Nick: "Test", |
|
|
Nick: "Test", |
|
|
User: "Tester", |
|
|
User: "Tester", |
|
@ -16,6 +16,11 @@ func TestClientInteraction(t *testing.T) { |
|
|
Alternatives: []string{"Test2", "Test3", "Test4"}, |
|
|
Alternatives: []string{"Test2", "Test3", "Test4"}, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
t.Logf("Client.ID = %#+v", client.ID()) |
|
|
|
|
|
if client.ID() == "" { |
|
|
|
|
|
t.Fail() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
interaction := irctest.Interaction{ |
|
|
interaction := irctest.Interaction{ |
|
|
Strict: false, |
|
|
Strict: false, |
|
|
Lines: []irctest.InteractionLine{ |
|
|
Lines: []irctest.InteractionLine{ |
|
|