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

test(sample/user_test.go): minor correction at t.Errorf #544

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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