refactor: massive refactor to have only one binary to call

This commit is contained in:
Kharec committed 2025-11-26 14:04:13 +01:00
1 parent 314da54495
commit 3723f84d1a
41 files changed
+272 -188

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
package daysix
import "testing"
var testInput = []string{
"abc",
"",
"a",
"b",
"c",
"",
"ab",
"ac",
"",
"a",
"a",
"a",
"a",
"",
"b",
}
func TestPartOne(t *testing.T) {
expected := 11
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}
func TestPartTwo(t *testing.T) {
expected := 6
got := PartTwo(testInput)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, expected)
}
}