diff --git a/src/chapter1/problem1_test.go b/src/chapter1/problem1_test.go index e4f35d3..e7f17e4 100644 --- a/src/chapter1/problem1_test.go +++ b/src/chapter1/problem1_test.go @@ -17,7 +17,7 @@ func TestIsUnique(t *testing.T) { for _, c := range cases { actual := IsUnique(c.input) if actual != c.expected { - t.Fatalf("Input %s. Expected: %b, actual: %b\n", c.input, c.expected, actual) + t.Fatalf("Input %s. Expected: %t, actual: %t\n", c.input, c.expected, actual) } } } diff --git a/src/chapter1/problem2_test.go b/src/chapter1/problem2_test.go index b602156..8fe328c 100644 --- a/src/chapter1/problem2_test.go +++ b/src/chapter1/problem2_test.go @@ -20,7 +20,7 @@ func TestArePermutations(t *testing.T) { for _, c := range cases { actual := ArePermutations(c.input1, c.input2) if actual != c.expected { - t.Fatalf("Inputs %s, %s. Expected: %b, actual: %b\n", + t.Fatalf("Inputs %s, %s. Expected: %t, actual: %t\n", c.input1, c.input2, c.expected, actual) } } diff --git a/src/chapter1/problem4_test.go b/src/chapter1/problem4_test.go index 5aabb17..c26db8a 100644 --- a/src/chapter1/problem4_test.go +++ b/src/chapter1/problem4_test.go @@ -18,7 +18,7 @@ func TestIsPalindromePerm(t *testing.T) { for _, c := range cases { actual := IsPalindromePerm(c.input) if actual != c.expected { - t.Fatalf("Input %s. Expected: %b, actual: %b\n", c.input, c.expected, actual) + t.Fatalf("Input %s. Expected: %t, actual: %t\n", c.input, c.expected, actual) } } } diff --git a/src/chapter1/problem5_test.go b/src/chapter1/problem5_test.go index f18291b..dccf82f 100644 --- a/src/chapter1/problem5_test.go +++ b/src/chapter1/problem5_test.go @@ -24,7 +24,7 @@ func TestAreOneEditAway(t *testing.T) { for _, c := range cases { actual := AreOneEditAway(c.input1, c.input2) if actual != c.expected { - t.Fatalf("Inputs %s, %s. Expected: %b, actual: %b\n", + t.Fatalf("Inputs %s, %s. Expected: %t, actual: %t\n", c.input1, c.input2, c.expected, actual) } } diff --git a/src/chapter1/problem9_test.go b/src/chapter1/problem9_test.go index 14157b0..d56445d 100644 --- a/src/chapter1/problem9_test.go +++ b/src/chapter1/problem9_test.go @@ -20,7 +20,7 @@ func TestIsRotation(t *testing.T) { for _, c := range cases { actual := IsRotation(c.input1, c.input2) if actual != c.expected { - t.Fatalf("Inputs %s, %s. Expected: %b, actual: %b\n", + t.Fatalf("Inputs %s, %s. Expected: %t, actual: %t\n", c.input1, c.input2, c.expected, actual) } } diff --git a/src/chapter3/problem6_test.go b/src/chapter3/problem6_test.go index c34ef20..5bc00b6 100644 --- a/src/chapter3/problem6_test.go +++ b/src/chapter3/problem6_test.go @@ -16,20 +16,20 @@ func TestPetShelter(t *testing.T) { t.Fatalf("Unexpected error: %v\n", err) } if i.petType != DogType || i.name != "lucky" { - t.Fatalf("Expected: lucky, actual: %d\n", i.name) + t.Fatalf("Expected: lucky, actual: %s\n", i.name) } i, err = ps.dequeueDog() if err != nil { t.Fatalf("Unexpected error: %v\n", err) } if i.petType != DogType || i.name != "spot" { - t.Fatalf("Expected: spot, actual: %d\n", i.name) + t.Fatalf("Expected: spot, actual: %s\n", i.name) } i, err = ps.dequeueCat() if err != nil { t.Fatalf("Unexpected error: %v\n", err) } if i.petType != CatType || i.name != "snowball" { - t.Fatalf("Expected: snowball, actual: %d\n", i.name) + t.Fatalf("Expected: snowball, actual: %s\n", i.name) } }