From 39b4f413a17b5a8a0ca51d34e3d37e36e46dede9 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 13 Feb 2012 21:37:17 +0100 Subject: [PATCH] Don't format in t.Error() --- cache_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cache_test.go b/cache_test.go index e25faf0..57db9e0 100644 --- a/cache_test.go +++ b/cache_test.go @@ -417,12 +417,12 @@ func TestIncrementOverflowInt(t *testing.T) { tc.Set("int8", int8(127), 0) err := tc.Increment("int8", 1) if err != nil { - t.Error("Error incrementing int8: %s", err) + t.Error("Error incrementing int8:", err) } x, _ := tc.Get("int8") int8 := x.(int8) if int8 != -128 { - t.Error("int8 did not overflow as expected; value: %d", int8) + t.Error("int8 did not overflow as expected; value:", int8) } } @@ -432,12 +432,12 @@ func TestIncrementOverflowUint(t *testing.T) { tc.Set("uint8", uint8(255), 0) err := tc.Increment("uint8", 1) if err != nil { - t.Error("Error incrementing int8: %s", err) + t.Error("Error incrementing int8:", err) } x, _ := tc.Get("uint8") uint8 := x.(uint8) if uint8 != 0 { - t.Error("uint8 did not overflow as expected; value: %d", uint8) + t.Error("uint8 did not overflow as expected; value:", uint8) } } @@ -446,12 +446,12 @@ func TestDecrementUnderflowUint(t *testing.T) { tc.Set("uint8", uint8(0), 0) err := tc.Decrement("uint8", 1) if err != nil { - t.Error("Error decrementing int8: %s", err) + t.Error("Error decrementing int8:", err) } x, _ := tc.Get("uint8") uint8 := x.(uint8) if uint8 != 255 { - t.Error("uint8 did not underflow as expected; value: %d", uint8) + t.Error("uint8 did not underflow as expected; value:", uint8) } }