This commit is contained in:
Katherina Walshe-Grey 2024-10-28 19:58:56 +00:00
parent 255c191dfc
commit 399e40a6f9
3 changed files with 49 additions and 5 deletions

View file

@ -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)
}
}
}