fix some of the rune/int -> string test errors

This commit is contained in:
Liam Stanley 2020-10-28 01:08:24 -04:00
parent e2b3e11741
commit 662a911d11
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ func TestTagGetSetCount(t *testing.T) {
}
// Add a hidden ascii value at the end to make it invalid.
if err := e.Tags.Set("key", "invalid-value"+string(0x08)); err == nil {
if err := e.Tags.Set("key", "invalid-value"+string(rune(0x08))); err == nil {
t.Fatal("tag set of invalid value should have returned error")
}
}

View File

@ -356,7 +356,7 @@ func (cmd *Commands) List(channels ...string) {
// Whowas sends a WHOWAS query to the server. amount is the amount of results
// you want back.
func (cmd *Commands) Whowas(user string, amount int) {
cmd.c.Send(&Event{Command: WHOWAS, Params: []string{user, string(amount)}})
cmd.c.Send(&Event{Command: WHOWAS, Params: []string{user, fmt.Sprint(amount)}})
}
// Monitor sends a MONITOR query to the server. The results of the query