From e3a2577f7fbd4b0f07dbd3cffef23fbd07287337 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Wed, 16 Nov 2016 18:34:49 +0200 Subject: [PATCH] Fixed printfs in tests --- validation_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/validation_test.go b/validation_test.go index bd9bdbe..1869e6e 100644 --- a/validation_test.go +++ b/validation_test.go @@ -43,7 +43,7 @@ func TestValidKey(t *testing.T) { } { ret := ValidKey(test.key) if ret != test.output { - t.Errorf("Test %d: Expected return value %b, but got %b", i, test.output, ret) + t.Errorf("Test %d: Expected return value %t, but got %t", i, test.output, ret) } } } @@ -60,7 +60,7 @@ func TestGetValidSubdomain(t *testing.T) { } { ret := ValidSubdomain(test.subdomain) if ret != test.output { - t.Errorf("Test %d: Expected return value %b, but got %b", i, test.output, ret) + t.Errorf("Test %d: Expected return value %t, but got %t", i, test.output, ret) } } } @@ -78,7 +78,7 @@ func TestValidTXT(t *testing.T) { } { ret := ValidTXT(test.txt) if ret != test.output { - t.Errorf("Test %d: Expected return value %b, but got %b", i, test.output, ret) + t.Errorf("Test %d: Expected return value %t, but got %t", i, test.output, ret) } } } @@ -102,7 +102,7 @@ func TestCorrectPassword(t *testing.T) { } { ret := CorrectPassword(test.pw, test.hash) if ret != test.output { - t.Errorf("Test %d: Expected return value %b, but got %b", i, test.output, ret) + t.Errorf("Test %d: Expected return value %t, but got %t", i, test.output, ret) } } }