Files
advent-of-code/internal/2018/DayTwo/code_test.go
2025-11-30 12:50:33 +01:00

22 lines
296 B
Go

package daytwo
import "testing"
var testInput = []string{
"abcdef",
"bababc",
"abbcde",
"abcccd",
"aabcdd",
"abcdee",
"ababab",
}
func TestPartOne(t *testing.T) {
expected := 12
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}