]> fbox.kageds.com Git - adventofcode.git/blob - 2022/go/day09/day09_test.go
day5 part2
[adventofcode.git] / 2022 / go / day09 / day09_test.go
1 package day09
2
3 import (
4 "testing"
5
6 "github.com/stretchr/testify/require"
7 )
8
9 func TestPart1(t *testing.T) {
10 r := Part1(
11 `R 4
12 U 4
13 L 3
14 D 1
15 R 4
16 D 1
17 L 5
18 R 2`)
19 require.Equal(t, 13, r)
20 }
21
22 func TestPart2(t *testing.T) {
23 r := Part2("")
24 require.Equal(t, 0, r)
25 }