aoc21/d12/d12_test.go
2022-05-04 18:03:29 +03:00

31 lines
306 B
Go

package d12
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestP1(t *testing.T) {
in := `start-A
start-b
A-c
A-b
b-d
A-end
b-end`
assert.EqualValues(t, 10, P1(in))
}
func TestP2(t *testing.T) {
in := `start-A
start-b
A-c
A-b
b-d
A-end
b-end`
assert.EqualValues(t, 36, P2(in))
}