Skip to content

Commit

Permalink
accumulate: update tests
Browse files Browse the repository at this point in the history
see #414
Also removed unnecessary else block
  • Loading branch information
robphoenix committed Mar 6, 2017
1 parent d5ed611 commit af16eaa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exercises/accumulate/accumulate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ func TestAccumulate(t *testing.T) {
for _, test := range tests {
actual := Accumulate(test.given, test.converter)
if fmt.Sprintf("%s", actual) != fmt.Sprintf("%s", test.expected) {
t.Fatalf("Accumulate(%s, %s): expected %s, actual %s", test.given, test.description, test.expected, actual)
} else {
t.Logf("PASS: %s %v", test.description, test.given)
t.Fatalf("Accumulate(%q, %q): expected %q, actual %q", test.given, test.description, test.expected, actual)
}
}
}
Expand Down

0 comments on commit af16eaa

Please sign in to comment.