Skip to content

Commit

Permalink
Fixed broken test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunburdick committed Dec 3, 2024
1 parent da4620c commit 60ce860
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions day-2/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ func Test_day2_part1(t *testing.T) {
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := part1(tt.input); got != tt.want {
t.Errorf("part1() = %v, want %v", got, tt.want)
}
})
if tt.run {
t.Run(tt.name, func(t *testing.T) {
if got := part1(tt.input); got != tt.want {
t.Errorf("part1() = %v, want %v", got, tt.want)
}
})
}
}
}

Expand Down Expand Up @@ -73,11 +75,13 @@ func Test_day2_part2(t *testing.T) {
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := part2(tt.input); got != tt.want {
t.Errorf("part2() = %v, want %v", got, tt.want)
}
})
if tt.run {
t.Run(tt.name, func(t *testing.T) {
if got := part2(tt.input); got != tt.want {
t.Errorf("part2() = %v, want %v", got, tt.want)
}
})
}
}
}

Expand Down

0 comments on commit 60ce860

Please sign in to comment.