Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
test(sample/user_test.go): minor correction at t.Errorf (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
adsian authored Mar 22, 2021
1 parent 7105dde commit f36d14a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestVariadicFunction(t *testing.T) {
sum += value
}
if sum != 26 {
t.Errorf("Expected 7, got %d", sum)
t.Errorf("Expected 26, got %d", sum)
}
})
mockIndex.EXPECT().Ellip("%d", gomock.Any()).Do(func(format string, nums ...int) {
Expand All @@ -83,7 +83,7 @@ func TestVariadicFunction(t *testing.T) {
sum += value
}
if sum != 10 {
t.Errorf("Expected 7, got %d", sum)
t.Errorf("Expected 10, got %d", sum)
}
})
mockIndex.EXPECT().Ellip("%d", gomock.Any()).Do(func(format string, nums ...int) {
Expand Down

0 comments on commit f36d14a

Please sign in to comment.