mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-05-19 03:23:27 +02:00
2018 day 07 - graph & multiple workers
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user