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