package d15 import ( "testing" "github.com/stretchr/testify/assert" ) func TestP1(t *testing.T) { result := P1(`1163751742 1381373672 2136511328 3694931569 7463417111 1319128137 1359912421 3125421639 1293138521 2311944581`) assert.EqualValues(t, 40, result) } func TestP2(t *testing.T) { result := P2(`1163751742 1381373672 2136511328 3694931569 7463417111 1319128137 1359912421 3125421639 1293138521 2311944581`) assert.EqualValues(t, 315, result) } func BenchmarkP2(t *testing.B) { P2(`1163751742 1381373672 2136511328 3694931569 7463417111 1319128137 1359912421 3125421639 1293138521 2311944581`) }