Advent-of-Code/2021/day3/main_test.go

12 lines
212 B
Go
Raw Normal View History

2023-11-15 13:28:22 +01:00
package main
import "testing"
func TestPart1(t *testing.T) {
const expected = 198
2023-11-15 18:34:41 +01:00
result := Part1(GetData("./test-data"))
2023-11-15 13:28:22 +01:00
if result != expected {
t.Fatalf("Expected: %d Result: %d", expected, result)
}
}