There was an error while loading. Please reload this page.
1 parent c7ba1fd commit 45b0971Copy full SHA for 45b0971
gitmap_test.go
@@ -155,6 +155,8 @@ func assertMessage(
155
expectedSubject,
156
expectedBody string,
157
) {
158
+ t.Helper()
159
+
160
var (
161
gi *GitInfo
162
ok bool
@@ -165,11 +167,11 @@ func assertMessage(
165
167
}
166
168
169
if gi.Subject != expectedSubject {
- t.Error("Incorrect commit subject. Got", gi.Subject)
170
+ t.Fatalf("Incorrect commit subject. Expected:\n%q\nGot:\n%q", expectedSubject, gi.Subject)
171
172
173
if gi.Body != expectedBody {
- t.Error("Incorrect commit body. Got", gi.Body)
174
+ t.Fatalf("Incorrect commit body. Expected:\n%q\nGot:\n%q", expectedBody, gi.Body)
175
176
177
testfiles/r3.txt
@@ -0,0 +1 @@
1
+Edit1.
0 commit comments