// Euler6 solution
func Euler6(p int) int {
	sumSquare := goutils.SumSquare(p)
	squareSum := goutils.SquareSum(p)

	squareDiff := squareSum - sumSquare
	return squareDiff
}
// TestSumSquare tests SumSquare
func TestSumSquare(t *testing.T) {
	var tt = []goutils.TTII{
		{10, 385},
	}

	for i := 0; i < len(tt); i++ {
		testIn := goutils.SumSquare(tt[i].Test)
		testExp := tt[i].Expt

		if testExp != testIn {
			t.Error("SumSquare test failed")
		}
	}
}