File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ func NotImplemented(a ...any) {
268
268
// single 'if-statement' that is almost nothing.
269
269
func ThatNot (term bool , a ... any ) {
270
270
if term {
271
- defMsg := "ThatNot: " + assertionMsg
271
+ defMsg := assertionMsg
272
272
Default ().reportAssertionFault (defMsg , a )
273
273
}
274
274
}
@@ -278,7 +278,7 @@ func ThatNot(term bool, a ...any) {
278
278
// single 'if-statement' that is almost nothing.
279
279
func That (term bool , a ... any ) {
280
280
if ! term {
281
- defMsg := "That: " + assertionMsg
281
+ defMsg := assertionMsg
282
282
Default ().reportAssertionFault (defMsg , a )
283
283
}
284
284
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ func ExampleThat() {
18
18
}
19
19
err := sample ()
20
20
fmt .Printf ("%v" , err )
21
- // Output: testing: run example: assert_test.go:16: ExampleThat.func1(): That: assertion violation: optional message
21
+ // Output: testing: run example: assert_test.go:16: ExampleThat.func1(): assertion violation: optional message
22
22
}
23
23
24
24
func ExampleNotNil () {
You can’t perform that action at this time.
0 commit comments