feat: wip on day 11 part 2
This commit is contained in:
+25
-2
@@ -1,6 +1,7 @@
|
||||
package main_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/11"
|
||||
@@ -9,10 +10,10 @@ import (
|
||||
func TestSolvePartOneWithExampleInput(t *testing.T) {
|
||||
expected := 5
|
||||
|
||||
result := solution.SolvePartOne("EXAMPLE.txt")
|
||||
result := solution.SolvePartOne("EXAMPLE_ONE.txt")
|
||||
|
||||
if result != expected {
|
||||
t.Errorf("SolvePartOne(EXAMPLE.txt) = %d; want %d", result, expected)
|
||||
t.Errorf("SolvePartOne(EXAMPLE_ONE.txt) = %d; want %d", result, expected)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,3 +26,25 @@ func TestSolvePartOneWithInput(t *testing.T) {
|
||||
t.Errorf("SolvePartOne(INPUT.txt) = %d; want %d", result, expected)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSolvePartTwoWithExampleInput(t *testing.T) {
|
||||
expected := 2
|
||||
|
||||
result := solution.SolvePartTwo("EXAMPLE_TWO.txt")
|
||||
|
||||
if result != expected {
|
||||
t.Errorf("SolvePartTwo(EXAMPLE_TWO.txt) = %d; want %d", result, expected)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSolvePartTwoWithInput(t *testing.T) {
|
||||
expected := -1
|
||||
|
||||
fmt.Println("HERE")
|
||||
|
||||
result := solution.SolvePartTwo("INPUT.txt")
|
||||
|
||||
if result != expected {
|
||||
t.Errorf("SolvePartTwo(INPUT.txt) = %d; want %d", result, expected)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user