2018 day 07 - graph & multiple workers

This commit is contained in:
alexchao26
2020-11-30 12:01:22 -05:00
parent 92d5b3c68d
commit 43ad04293d
30 changed files with 544 additions and 104 deletions
+4 -4
View File
@@ -25,7 +25,7 @@ var tests1 = []struct {
input string
// add extra args if needed
}{
// {"actual", /* ACTUAL ANSWER */, util.ReadFile("input.txt")},
// {"actual", ACTUAL_ANSWER, util.ReadFile("input.txt")},
}
func TestPart1(t *testing.T) {
@@ -33,7 +33,7 @@ func TestPart1(t *testing.T) {
t.Run(test.name, func(*testing.T) {
got := part1(test.input)
if got != test.want {
t.Errorf("want %v, got %v", test.want, got)
t.Errorf("got %v, want %v", got, test.want)
}
})
}
@@ -45,7 +45,7 @@ var tests2 = []struct {
input string
// add extra args if needed
}{
// {"actual", /* ACTUAL ANSWER */, util.ReadFile("input.txt")},
// {"actual", ACTUAL_ANSWER, util.ReadFile("input.txt")},
}
func TestPart2(t *testing.T) {
@@ -53,7 +53,7 @@ func TestPart2(t *testing.T) {
t.Run(test.name, func(*testing.T) {
got := part2(test.input)
if got != test.want {
t.Errorf("want %v, got %v", test.want, got)
t.Errorf("got %v, want %v", got, test.want)
}
})
}