aoc21/d12/d12_test.go

32 lines
306 B
Go
Raw Normal View History

2022-05-04 18:03:29 +03:00
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))
}