Blob Blame History Raw
From 4fe21d7cdec414fd73bcea089fdb7e08bc8042ab Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Tue, 11 Aug 2020 03:19:07 -0400
Subject: [PATCH] Convert `int` to `string` using `rune`.

This fixes test build on Go 1.15.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 strslice_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strslice_test.go b/strslice_test.go
index 3584ec6..44f39e4 100644
--- a/strslice_test.go
+++ b/strslice_test.go
@@ -12,7 +12,7 @@ func TestStringSlice(t *testing.T) {
 
 	var s StringSlice
 	for i := 0; i < 1000; i++ {
-		s.Add(string('A' + i))
+		s.Add(string(rune('A' + i)))
 	}
 
 	assert.Equal(t, "len(s)", len(s), 1000)
-- 
2.25.4