aoc21/d11/d11_test.go

38 lines
461 B
Go
Raw Normal View History

2022-04-03 22:38:47 +03:00
package d11
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestP1(t *testing.T) {
input := `5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526`
assert.EqualValues(t, 1656, P1(input))
}
func TestP2(t *testing.T) {
input := `5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526`
assert.EqualValues(t, 195, P2(input))
}