summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-09-20 13:47:09 -0400
committerBen Burwell <ben@benburwell.com>2019-09-20 13:47:09 -0400
commite1eee80afa1ddf579aea52435c69813459ce3811 (patch)
tree782a10c94191c7a9aedbab13c44c46b5a6e6e808
parent0e8f620f15592f66e733cc60dbaa722b183b0abf (diff)
Use %q format string
-rw-r--r--caesar_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/caesar_test.go b/caesar_test.go
index 9754edd..008cccc 100644
--- a/caesar_test.go
+++ b/caesar_test.go
@@ -6,7 +6,7 @@ import (
func TestEncode(t *testing.T) {
msg := "Attack at dawn"
- t.Logf("testing message %s", msg)
+ t.Logf("testing message %q", msg)
if Encode(msg) != "Dwwdfn dw gdzq" {
t.Fail()
}
@@ -42,7 +42,7 @@ func TestEncoderTable(t *testing.T) {
for _, test := range tests {
result := Encode(test.in)
if result != test.out {
- t.Errorf("encode %s: expected %s, got %s", test.in, test.out, result)
+ t.Errorf("encode %q: expected %q, got %q", test.in, test.out, result)
}
}
}