Very quick implementation for day 1

This commit is contained in:
2021-12-01 09:30:03 +01:00
parent 10531e3422
commit f413b08da6
4 changed files with 2075 additions and 4 deletions

View File

@@ -88,3 +88,10 @@ pub fn get_implementation(day: usize, part2: bool) -> Solution {
}
}
}
#[cfg(test)]
fn test_implementation(solution: Solution, data: impl AsRef<[u8]>, answer: impl ToString) {
let result = solution(&mut data.as_ref());
assert_eq!(answer.to_string(), result);
}