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

Commit f36d14a

Browse files
authored
test(sample/user_test.go): minor correction at t.Errorf (#544)
1 parent 7105dde commit f36d14a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sample/user_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestVariadicFunction(t *testing.T) {
7474
sum += value
7575
}
7676
if sum != 26 {
77-
t.Errorf("Expected 7, got %d", sum)
77+
t.Errorf("Expected 26, got %d", sum)
7878
}
7979
})
8080
mockIndex.EXPECT().Ellip("%d", gomock.Any()).Do(func(format string, nums ...int) {
@@ -83,7 +83,7 @@ func TestVariadicFunction(t *testing.T) {
8383
sum += value
8484
}
8585
if sum != 10 {
86-
t.Errorf("Expected 7, got %d", sum)
86+
t.Errorf("Expected 10, got %d", sum)
8787
}
8888
})
8989
mockIndex.EXPECT().Ellip("%d", gomock.Any()).Do(func(format string, nums ...int) {

0 commit comments

Comments
 (0)