This commit is contained in:
Gareth
2025-01-22 22:31:04 +00:00
parent ba588cbc77
commit a529516bab
4 changed files with 1768 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
package day22
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPart1(t *testing.T) {
r := Part1(`1
10
100
2024`)
assert.Equal(t, 37327623, r)
}
func TestPart2(t *testing.T) {
r := Part2(`1
2
3
2024`)
assert.Equal(t, 23, r)
}