2015-day25: thank goodness this wasn't modular arithmetic

This commit is contained in:
alexchao26
2020-12-28 00:06:30 -05:00
parent f57ebe956e
commit 077378f12c
2 changed files with 46 additions and 46 deletions
+6 -21
View File
@@ -2,37 +2,22 @@ package main
import (
"testing"
"github.com/alexchao26/advent-of-code-go/util"
)
func Test_part1(t *testing.T) {
func Test_letItSnow(t *testing.T) {
tests := []struct {
name string
input string
want int
}{
// {"actual", util.ReadFile("input.txt"), ACTUAL_ANSWER},
{"actual", util.ReadFile("input.txt"), 19980801},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := part1(tt.input); got != tt.want {
t.Errorf("part1() = %v, want %v", got, tt.want)
}
})
}
}
func Test_part2(t *testing.T) {
tests := []struct {
name string
input string
want int
}{
// {"actual", util.ReadFile("input.txt"), ACTUAL_ANSWER},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := part2(tt.input); got != tt.want {
t.Errorf("part2() = %v, want %v", got, tt.want)
if got := letItSnow(tt.input); got != tt.want {
t.Errorf("letItSnow() = %v, want %v", got, tt.want)
}
})
}