Files
adventofcode/2024/gareth/day06/day06_test.go
Gareth 360ae5edbd Day06
2024-12-06 16:56:58 +00:00

36 lines
441 B
Go

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)
}