fix some of the rune/int -> string test errors
This commit is contained in:
parent
e2b3e11741
commit
662a911d11
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue