|
|
86667da |
From 8a3bb0c01cb040714e80c6783033c3f7c885c1b7 Mon Sep 17 00:00:00 2001
|
|
|
86667da |
From: Ed Marshall <esm@logic.net>
|
|
|
86667da |
Date: Wed, 14 Mar 2018 20:30:44 -0700
|
|
|
86667da |
Subject: [PATCH] Correct a few format string issues.
|
|
|
86667da |
|
|
|
86667da |
---
|
|
|
86667da |
utils/runeint_test.go | 8 ++++----
|
|
|
86667da |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
86667da |
|
|
|
86667da |
diff --git a/utils/runeint_test.go b/utils/runeint_test.go
|
|
|
86667da |
index f1fdbc5..4e66820 100644
|
|
|
86667da |
--- a/utils/runeint_test.go
|
|
|
86667da |
+++ b/utils/runeint_test.go
|
|
|
86667da |
@@ -4,7 +4,7 @@ import "testing"
|
|
|
86667da |
|
|
|
86667da |
func Test_RuneToIntIntToRune(t *testing.T) {
|
|
|
86667da |
if IntToRune(0) != '0' {
|
|
|
86667da |
- t.Errorf("failed IntToRune(0) returned %d", string(IntToRune(0)))
|
|
|
86667da |
+ t.Errorf("failed IntToRune(0) returned %d", IntToRune(0))
|
|
|
86667da |
}
|
|
|
86667da |
if IntToRune(9) != '9' {
|
|
|
86667da |
t.Errorf("failed IntToRune(9) returned %d", IntToRune(9))
|
|
|
86667da |
@@ -13,12 +13,12 @@ func Test_RuneToIntIntToRune(t *testing.T) {
|
|
|
86667da |
t.Errorf("failed IntToRune(10) returned %d", IntToRune(10))
|
|
|
86667da |
}
|
|
|
86667da |
if RuneToInt('0') != 0 {
|
|
|
86667da |
- t.Error("failed RuneToInt('0') returned %d", RuneToInt(0))
|
|
|
86667da |
+ t.Errorf("failed RuneToInt('0') returned %d", RuneToInt(0))
|
|
|
86667da |
}
|
|
|
86667da |
if RuneToInt('9') != 9 {
|
|
|
86667da |
- t.Error("failed RuneToInt('9') returned %d", RuneToInt(9))
|
|
|
86667da |
+ t.Errorf("failed RuneToInt('9') returned %d", RuneToInt(9))
|
|
|
86667da |
}
|
|
|
86667da |
if RuneToInt('F') != -1 {
|
|
|
86667da |
- t.Error("failed RuneToInt('F') returned %d", RuneToInt('F'))
|
|
|
86667da |
+ t.Errorf("failed RuneToInt('F') returned %d", RuneToInt('F'))
|
|
|
86667da |
}
|
|
|
86667da |
}
|