Skip to content

Commit

Permalink
Use strconv.Itoa to stringify numbers (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Seplowitz <mseplowitz@bloomberg.net>
  • Loading branch information
mikesep committed Dec 12, 2023
1 parent a0ab834 commit 6150bb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"errors"
"fmt"
"os/exec"
"strconv"
"strings"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -202,7 +203,7 @@ func (g *ThingsYouCanDoWithT) RunSubtests(t *testgroup.T) {
positiveNumbers := []int{1, 3, 7, 42}
for _, n := range positiveNumbers {
num := n
t.Run(fmt.Sprintf("%d", num), func(t *testgroup.T) {
t.Run(strconv.Itoa(num), func(t *testgroup.T) {
t.Greater(num, 0)
})
}
Expand Down

0 comments on commit 6150bb6

Please sign in to comment.