Day 2 part 1

This commit is contained in:
2017-12-10 16:33:36 -08:00
parent 47fddc317c
commit 8dc6e4e5f6
3 changed files with 80 additions and 0 deletions

13
2017/2/2_test.go Normal file
View File

@@ -0,0 +1,13 @@
package main
import "testing"
func TestChecksum(t *testing.T) {
var spreadsheet = `5 1 9 5
7 5 3
2 4 6 8`
want := 18
if got := checksum(spreadsheet); got != want {
t.Errorf("checksum() = %d; want %d", got, want)
}
}