This commit is contained in:
Gareth
2024-12-06 16:56:58 +00:00
parent c1c89faef8
commit ae293fe5a2
4 changed files with 315 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
package day06
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPart1(t *testing.T) {
r := Part1(`....#.....
.........#
..........
..#.......
.......#..
..........
.#..^.....
........#.
#.........
......#...`)
assert.Equal(t, 41, r)
}
func TestPart2(t *testing.T) {
r := Part2(`....#.....
.........#
..........
..#.......
.......#..
..........
.#..^.....
........#.
#.........
......#...`)
assert.Equal(t, 6, r)
}