Day 1b
This commit is contained in:
parent
255c191dfc
commit
399e40a6f9
3 changed files with 49 additions and 5 deletions
|
|
@ -11,6 +11,7 @@ func TestScanFile(t *testing.T) {
|
|||
want int;
|
||||
}{
|
||||
{"input1.txt", 142},
|
||||
{"input2.txt", 281},
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
|
|
@ -25,7 +26,7 @@ func TestScanFile(t *testing.T) {
|
|||
}
|
||||
|
||||
if got != c.want {
|
||||
t.Errorf("ScanFile(%q) == %q, want %q", c.inFile, got, c.want)
|
||||
t.Errorf("ScanFile(%q) == %d, want %d", c.inFile, got, c.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue