From 04155c1a20659c13d7150585bdb3cd244e4873dd Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Mon, 20 Feb 2023 14:49:51 -0800 Subject: [PATCH] bug fix: missing newline in Errorf --- assert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert.go b/assert.go index 8ab359d..34f2a65 100644 --- a/assert.go +++ b/assert.go @@ -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() }