Skip to content

Commit 45b0971

Browse files
committed
Edit testfiles/r3.txt
Multiline commit body.
1 parent c7ba1fd commit 45b0971

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎gitmap_test.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ func assertMessage(
155155
expectedSubject,
156156
expectedBody string,
157157
) {
158+
t.Helper()
159+
158160
var (
159161
gi *GitInfo
160162
ok bool
@@ -165,11 +167,11 @@ func assertMessage(
165167
}
166168

167169
if gi.Subject != expectedSubject {
168-
t.Error("Incorrect commit subject. Got", gi.Subject)
170+
t.Fatalf("Incorrect commit subject. Expected:\n%q\nGot:\n%q", expectedSubject, gi.Subject)
169171
}
170172

171173
if gi.Body != expectedBody {
172-
t.Error("Incorrect commit body. Got", gi.Body)
174+
t.Fatalf("Incorrect commit body. Expected:\n%q\nGot:\n%q", expectedBody, gi.Body)
173175
}
174176
}
175177

‎testfiles/r3.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Edit1.

0 commit comments

Comments
 (0)