2020-day17 initial solution, it ain't pretty

This commit is contained in:
alexchao26
2020-12-17 18:28:42 -05:00
parent 228a6853e2
commit e0e54dc95e
2 changed files with 225 additions and 14 deletions
+10 -2
View File
@@ -2,15 +2,22 @@ package main
import (
"testing"
"github.com/alexchao26/advent-of-code-go/util"
)
var example = `.#.
..#
###`
func Test_part1(t *testing.T) {
tests := []struct {
name string
input string
want int
}{
// {"actual", util.ReadFile("input.txt"), ACTUAL_ANSWER},
{"example", example, 112},
{"actual", util.ReadFile("input.txt"), 388},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
@@ -27,7 +34,8 @@ func Test_part2(t *testing.T) {
input string
want int
}{
// {"actual", util.ReadFile("input.txt"), ACTUAL_ANSWER},
{"example", example, 848},
{"actual", util.ReadFile("input.txt"), 2280},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {