Compare commits
3 Commits
c8517b674f
...
2d3828c55d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d3828c55d | |||
| b7a7bfb5c7 | |||
| be918bdf6c |
@@ -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 {
|
||||||
|
|||||||
24
internal/2025/DayOne/code_test.go
Normal file
24
internal/2025/DayOne/code_test.go
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
||||||
4387
internal/data/2025/DayOne/input.txt
Normal file
4387
internal/data/2025/DayOne/input.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user