예제 #1
0
func TestConcatInt(t *testing.T) {
	assert.AssertIntSliceEquals(t, []int{1, 2},
		concatInt([]int{1}, []int{2}))
}
예제 #2
0
func checkReduce(t *testing.T, num, denum, expectedNum, expectedDenum []int) {
	resNum, resDenum := reduceSlices(num, denum)
	assert.AssertIntSliceEquals(t, resNum, expectedNum)
	assert.AssertIntSliceEquals(t, resDenum, expectedDenum)
}