Implement day 7 part 1

This commit is contained in:
2021-12-07 09:45:58 +01:00
parent b369f9d36a
commit 2f3eb50a5b
4 changed files with 70 additions and 3 deletions

View File

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