Blob Blame History Raw
From 14fcdf9534b7e691786521441f6427616cfc9df4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Wed, 5 Aug 2020 14:47:00 +0200
Subject: [PATCH] graph/flow: Convert int to string using rune()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/golang/go/issues/32479

Fix #1419.

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 graph/flow/control_flow_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graph/flow/control_flow_test.go b/graph/flow/control_flow_test.go
index d053ea66..e1feb1aa 100644
--- a/graph/flow/control_flow_test.go
+++ b/graph/flow/control_flow_test.go
@@ -129,7 +129,7 @@ var dominatorsTests = []struct {
 type char int64
 
 func (n char) ID() int64      { return int64(n) }
-func (n char) String() string { return string(n) }
+func (n char) String() string { return string(rune(n)) }
 
 func TestDominators(t *testing.T) {
 	for _, test := range dominatorsTests {
-- 
2.26.2