Files
advent-of-code/2020/day05/main_test.go
2025-11-24 21:07:43 +01:00

19 lines
278 B
Go

package main
import "testing"
var testInput = []string{
"FBFBBFFRLR",
"BFFFBBFRRR",
"FFFBBBFRRR",
"BBFFBBFRLL",
}
func TestPartOne(t *testing.T) {
expected := 820
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}