finish 2023

This commit is contained in:
2024-12-01 08:01:55 +00:00
parent 6753ed26ca
commit 2584df5496
13 changed files with 776 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
package day15
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestPart1(t *testing.T) {
r := Part1("rn=1,cm-,qp=3,cm=2,qp-,pc=4,ot=9,ab=5,pc-,pc=6,ot=7")
require.Equal(t, 1320, r)
}
func TestPart2(t *testing.T) {
r := Part2("rn=1,cm-,qp=3,cm=2,qp-,pc=4,ot=9,ab=5,pc-,pc=6,ot=7")
require.Equal(t, 145, r)
}