Skip to content

Commit

Permalink
improve fmt format
Browse files Browse the repository at this point in the history
  • Loading branch information
buke committed Feb 2, 2024
1 parent ff4209f commit cc7bd89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quickjs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)
}
Expand All @@ -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)

Expand Down

0 comments on commit cc7bd89

Please sign in to comment.