fix missing

This commit is contained in:
2025-01-13 23:48:55 +00:00
parent f8c29be7ef
commit 08b38c2bd3
59 changed files with 22848 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
package day12
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestPart1(t *testing.T) {
r := Part1(`RRRRIICCFF
RRRRIICCCF
VVRRRCCFFF
VVRCCCJFFF
VVVVCJJCFE
VVIVCCJJEE
VVIIICJJEE
MIIIIIJJEE
MIIISIJEEE
MMMISSJEEE`)
require.Equal(t, 1930, r)
}
func TestPart2(t *testing.T) {
r := Part2(`AAAA
BBCD
BBCC
EEEC`)
require.Equal(t, 80, r)
}