Updated lib to allow different output between part 1 and part 2

This commit is contained in:
2022-12-10 17:33:17 +01:00
parent 068b675982
commit 225537f364
14 changed files with 167 additions and 149 deletions

View File

@@ -13,7 +13,7 @@ mod tests {
#[test]
fn part1_test1() -> Result<()> {
Day::test(aoc::Part::ONE, "test-1", TEST)
Day::test(Day::part1, "test-1", TEST)
}
// Benchmarks
@@ -33,16 +33,18 @@ mod tests {
// -- Solution --
pub struct Day;
impl aoc::Solver for Day {
type Output = TYPE;
type Output1 = TYPE;
type Output2 = TYPE;
fn day() -> u8 {
DAY
}
fn part1(input: &str) -> Self::Output {
fn part1(input: &str) -> Self::Output1 {
DEFAULT
}
fn part2(input: &str) -> Self::Output {
fn part2(input: &str) -> Self::Output2 {
DEFAULT
}
}