Compare commits

..

3 Commits

Author SHA1 Message Date
2d3828c55d test: design unit test for part one 2025-12-01 07:20:12 +01:00
b7a7bfb5c7 feat: add 2025D1 input 2025-12-01 07:20:01 +01:00
be918bdf6c feat: include 2025D1 let's gooooo 2025-12-01 07:19:55 +01:00
3 changed files with 4414 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ import (
_ "advent-of-code/internal/2021/DayThree" _ "advent-of-code/internal/2021/DayThree"
_ "advent-of-code/internal/2021/DayTwo" _ "advent-of-code/internal/2021/DayTwo"
_ "advent-of-code/internal/2022/DayOne" _ "advent-of-code/internal/2022/DayOne"
// 2025
_ "advent-of-code/internal/2025/DayOne"
) )
func capitalize(day string) string { func capitalize(day string) string {

View File

@@ -0,0 +1,24 @@
package dayone
import "testing"
var testInput = []string{
"L68",
"L30",
"R48",
"L5",
"R60",
"L55",
"L1",
"L99",
"R14",
"L82",
}
func TestPartOne(t *testing.T) {
expected := 3
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}

File diff suppressed because it is too large Load Diff