mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-11-15 03:04:01 +01:00
26 lines
440 B
Go
26 lines
440 B
Go
|
package _023
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestDay02Part1(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day02_test1", 8},
|
||
|
{"inputs/day02", 2317},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day02Part1))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestDay02Part2(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day02_test1", 2286},
|
||
|
{"inputs/day02", 74804},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day02Part2))
|
||
|
}
|
||
|
}
|