Reimplement test macro as a generic function.

This commit is contained in:
2020-12-25 09:31:44 +01:00
parent 4c3640e994
commit 40a9cb63ff
21 changed files with 47 additions and 54 deletions

View File

@@ -59,13 +59,13 @@ mod tests {
#[test]
fn sample_part1() {
test_implementation!(Day10, 1, SAMPLE, 35);
test_implementation!(Day10, 1, SAMPLE2, 220);
test_implementation(Day10, 1, SAMPLE, 35);
test_implementation(Day10, 1, SAMPLE2, 220);
}
#[test]
fn sample_part2() {
test_implementation!(Day10, 2, SAMPLE, 8);
test_implementation!(Day10, 2, SAMPLE2, 19208);
test_implementation(Day10, 2, SAMPLE, 8);
test_implementation(Day10, 2, SAMPLE2, 19208);
}
}