Skip to content

Commit

Permalink
bug fix: missing newline in Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Feb 20, 2023
1 parent c07326c commit 04155c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func ObjectsAreEqualValues(a, b interface{}) bool {
func Errorf(t *testing.T, format string, rest ...interface{}) {
_, file, line, _ := runtime.Caller(2)
file = file[strings.LastIndex(file, "/")+1:]
fmt.Printf("%s:%d %s", file, line, fmt.Sprintf(format, rest...))
fmt.Printf("%s:%d %s\n", file, line, fmt.Sprintf(format, rest...))
t.Fail()
}

Expand Down

0 comments on commit 04155c1

Please sign in to comment.