From cc7bd8986922be055d2a1d8bbaf9fb5710a2d14a Mon Sep 17 00:00:00 2001 From: wangbuke Date: Fri, 2 Feb 2024 10:30:16 +0800 Subject: [PATCH] improve fmt format --- quickjs_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickjs_test.go b/quickjs_test.go index e7a88b7..0c2855c 100644 --- a/quickjs_test.go +++ b/quickjs_test.go @@ -565,7 +565,7 @@ func TestMap(t *testing.T) { count := 0 test.ForEach(func(key quickjs.Value, value quickjs.Value) { count++ - fmt.Println(fmt.Sprintf("key:%s value:%s", key.String(), value.String())) + fmt.Printf("key:%s value:%s\n", key.String(), value.String()) }) require.EqualValues(t, count, 3) @@ -574,7 +574,7 @@ func TestMap(t *testing.T) { count = 0 test.ForEach(func(key quickjs.Value, value quickjs.Value) { count++ - fmt.Println(fmt.Sprintf("key:%s value:%s", key.String(), value.String())) + fmt.Printf("key:%s value:%s\n", key.String(), value.String()) }) require.EqualValues(t, count, 4) @@ -586,7 +586,7 @@ func TestMap(t *testing.T) { panic(errors.New("map did not delete the key")) } count++ - fmt.Println(fmt.Sprintf("key:%s value:%s", key.String(), value.String())) + fmt.Printf("key:%s value:%s\n", key.String(), value.String()) }) require.EqualValues(t, count, 3) } @@ -610,7 +610,7 @@ func TestSet(t *testing.T) { count := 0 test.ForEach(func(key quickjs.Value) { count++ - fmt.Println(fmt.Sprintf("value:%s", key.String())) + fmt.Printf("value:%s\n", key.String()) }) require.EqualValues(t, count, 3)