From d70fa2760afbd1d59dd4fb78cd73cc4633c1fe6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Krmpoti=C4=87?= Date: Mon, 21 Aug 2023 11:09:26 +0200 Subject: [PATCH] strconv: add missing function name to Errorf string --- src/strconv/atob_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strconv/atob_test.go b/src/strconv/atob_test.go index 28f469f585..f102d78d00 100644 --- a/src/strconv/atob_test.go +++ b/src/strconv/atob_test.go @@ -39,19 +39,19 @@ func TestParseBool(t *testing.T) { if test.err != nil { // expect an error if e == nil { - t.Errorf("%s: expected %s but got nil", test.in, test.err) + t.Errorf("ParseBool(%s): expected %s but got nil", test.in, test.err) } else { // NumError assertion must succeed; it's the only thing we return. if test.err != e.(*NumError).Err { - t.Errorf("%s: expected %s but got %s", test.in, test.err, e) + t.Errorf("ParseBool(%s): expected %s but got %s", test.in, test.err, e) } } } else { if e != nil { - t.Errorf("%s: expected no error but got %s", test.in, e) + t.Errorf("ParseBool(%s): expected no error but got %s", test.in, e) } if b != test.out { - t.Errorf("%s: expected %t but got %t", test.in, test.out, b) + t.Errorf("ParseBool(%s): expected %t but got %t", test.in, test.out, b) } } }