mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-11-15 03:04:01 +01:00
26 lines
450 B
Go
26 lines
450 B
Go
|
package _023
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestDay03Part1(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day03_test1", 4361},
|
||
|
{"inputs/day03", 529618},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day03Part1))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestDay03Part2(t *testing.T) {
|
||
|
tests := []testCase{
|
||
|
{"inputs/day03_test1", 467835},
|
||
|
{"inputs/day03", 77509019},
|
||
|
}
|
||
|
for _, test := range tests {
|
||
|
t.Run(test.filename, check(test, Day03Part2))
|
||
|
}
|
||
|
}
|