t_scanner_test.go: replaced t.Log(fmtStringf()) with t.Logf()

This commit is contained in:
Celestino Amoroso 2024-07-07 16:18:39 +02:00
parent 34874ef663
commit dd6404c786

View File

@ -6,7 +6,6 @@ package expr
import (
"errors"
"fmt"
"reflect"
"strings"
"testing"
@ -69,9 +68,9 @@ func TestScanner(t *testing.T) {
// continue
// }
if input.wantErr == nil {
t.Log(fmt.Sprintf("[+]Test nr %2d -- %q", i+1, input.source))
t.Logf("[+]Test nr %2d -- %q", i+1, input.source)
} else {
t.Log(fmt.Sprintf("[-]Test nr %2d -- %q", i+1, input.source))
t.Logf("[-]Test nr %2d -- %q", i+1, input.source)
}
r := strings.NewReader(input.source)