aoc21/d2/d2_test.go

21 lines
207 B
Go
Raw Normal View History

2022-02-07 22:00:52 +02:00
package d2
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestD2(t *testing.T) {
input := `
forward 5
down 5
forward 8
up 3
down 8
forward 2`
assert.EqualValues(t, 150, D2(input))
}