From 662a911d11fbf3e9f3e287a176479601877f6f74 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Wed, 28 Oct 2020 01:08:24 -0400 Subject: [PATCH] fix some of the rune/int -> string test errors --- cap_test.go | 2 +- commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cap_test.go b/cap_test.go index 95fcada..6d3e814 100644 --- a/cap_test.go +++ b/cap_test.go @@ -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") } } diff --git a/commands.go b/commands.go index eebce21..8d98437 100644 --- a/commands.go +++ b/commands.go @@ -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