refactor: make not ugly

This commit is contained in:
Stevan Freeborn
2025-12-11 10:33:58 -06:00
parent 9b53e28a19
commit e931b515a2
3 changed files with 70 additions and 60 deletions
+19
View File
@@ -0,0 +1,19 @@
package problem_test
import (
"testing"
"github.com/StevanFreeborn/advent-of-code-2025/cmd/06/problem"
)
func TestSolve(t *testing.T) {
expected := 6
operator := "+"
operands := []int{1, 2, 3}
result := problem.From(operator, operands).Solve()
if result != expected {
t.Errorf("expected %d, got %d", expected, result)
}
}