package main import ( "testing" "github.com/stretchr/testify/assert" ) func TestSquere(t *testing.T) { asserts := assert.New(t) for _, td := range []struct { title string input []int output int }{ { title: "2×3の答えが6になる", input: []int{2, 3}, output: 6, }, { title: "3×5の答えが15になる", input: []int{3, 5}, output: 15, }, } { t.Run("Square:"+td.title, func(t *testing.T) { result := Square(td.input[0], td.i