6 "github.com/stretchr/testify/require"
9 func TestPart1(t *testing.T) {
12 Starting items: 79, 98
13 Operation: new = old * 19
15 If true: throw to monkey 2
16 If false: throw to monkey 3
19 Starting items: 54, 65, 75, 74
20 Operation: new = old + 6
22 If true: throw to monkey 2
23 If false: throw to monkey 0
26 Starting items: 79, 60, 97
27 Operation: new = old * old
29 If true: throw to monkey 1
30 If false: throw to monkey 3
34 Operation: new = old + 3
36 If true: throw to monkey 0
37 If false: throw to monkey 1
39 require.Equal(t, 10605, r)
42 func TestPart2(t *testing.T) {
44 require.Equal(t, 0, r)