mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-11-21 22:18:12 +01:00
26 lines
442 B
Go
26 lines
442 B
Go
|
package _023
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestDay04Part1(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day04_test1", 13},
|
||
|
{"inputs/day04", 23028},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day04Part1))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestDay04Part2(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day04_test1", 30},
|
||
|
{"inputs/day04", 9236992},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day04Part2))
|
||
|
}
|
||
|
}
|