Files
advent-of-code-2025/cmd/11/main_test.go
T

51 lines
1021 B
Go

package main_test
import (
"fmt"
"testing"
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/11"
)
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 5
result := solution.SolvePartOne("EXAMPLE_ONE.txt")
if result != expected {
t.Errorf("SolvePartOne(EXAMPLE_ONE.txt) = %d; want %d", result, expected)
}
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := 599
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
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)
}
}