much better day13 after looking at others

This commit is contained in:
2023-12-15 17:59:46 +00:00
parent e9a6c5178a
commit 6753ed26ca
11 changed files with 2315 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package day12
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestPart1(t *testing.T) {
r := Part1(
`Sabqponm
abcryxxl
accszExk
acctuvwj
abdefghi`)
require.Equal(t, 31, r)
}
func TestPart2(t *testing.T) {
r := Part2(
`Sabqponm
abcryxxl
accszExk
acctuvwj
abdefghi`)
require.Equal(t, 29, r)
}