mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Reimplement test macro as a generic function.
This commit is contained in:
@@ -126,12 +126,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn sample_part1() {
|
||||
test_implementation!(Day07, 1, SAMPLE, 4);
|
||||
test_implementation(Day07, 1, SAMPLE, 4);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sample_part2() {
|
||||
test_implementation!(Day07, 2, SAMPLE, 32);
|
||||
test_implementation!(Day07, 2, SAMPLE2, 126);
|
||||
test_implementation(Day07, 2, SAMPLE, 32);
|
||||
test_implementation(Day07, 2, SAMPLE2, 126);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user