From 8205d426e9681abc470dcb2e49344246a01b2e49 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 31 Jul 2023 18:04:18 +0200 Subject: use Logf() instead of Log(fmt.Sprintf()) --- wrms_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrms_test.go b/wrms_test.go index 3234dea..bfb620d 100644 --- a/wrms_test.go +++ b/wrms_test.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "github.com/google/uuid" "io" "testing" @@ -156,7 +155,8 @@ func TestTimeBonus(t *testing.T) { exp := 0.1 * float64(len(songs)-1) if wrms.Songs[0].Weight != exp { - t.Log(fmt.Sprintf("TimeBonus not correctly applied song %p %v expected: %v", &wrms.Songs[0], wrms.Songs[0], exp)) + t.Logf("TimeBonus not correctly applied song %p %v expected: %v", + &wrms.Songs[0], wrms.Songs[0], exp) t.Fail() } } -- cgit v1.2.3