Day 15: Part 2

Signed-off-by: James Griffin <james@unsupervised.ca>
This commit is contained in:
2020-12-15 20:13:06 -04:00
parent 4733cfa321
commit ab1a158f25
3 changed files with 26 additions and 0 deletions

View File

@@ -43,3 +43,18 @@ func Test_get_guess2(t *testing.T) {
}
}
func Test_get_guess3(t *testing.T) {
g := game{}
if err := g.load("sample.txt"); err != nil {
t.Logf(err.Error())
t.FailNow()
}
r := g.valueAt(30000000)
if r != 175594 {
t.Logf("Expected 175594, but got %d", r)
t.FailNow()
}
}