diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-07-31 18:04:18 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-07-31 18:04:18 +0200 |
| commit | 8205d426e9681abc470dcb2e49344246a01b2e49 (patch) | |
| tree | c72f490704eb19ffcf038e56b8f8669df8919524 /wrms_test.go | |
| parent | 04935efe4326cf442ad0adf7c288a12f57b3122f (diff) | |
| download | WRMS-8205d426e9681abc470dcb2e49344246a01b2e49.tar.gz WRMS-8205d426e9681abc470dcb2e49344246a01b2e49.zip | |
use Logf() instead of Log(fmt.Sprintf())
Diffstat (limited to 'wrms_test.go')
| -rw-r--r-- | wrms_test.go | 4 |
1 files 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() } } |
