This commit is contained in:
Gareth
2025-12-01 18:11:11 +00:00
parent 358249e78a
commit 015607cde3
8 changed files with 4247 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
package day01
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPart1(t *testing.T) {
r := Part1(`L68
L30
R48
L5
R60
L55
L1
L99
R14
L82`)
assert.Equal(t, 3, r)
}
func TestPart2(t *testing.T) {
r := Part2(`L68
L30
R48
L5
R60
L55
L1
L99
R14
L82`)
assert.Equal(t, 6, r)
}