Implement day 22 part 2 (and 1 again)

This commit is contained in:
2021-12-29 12:40:49 +01:00
parent b2f9898714
commit fd26f58e25
6 changed files with 235 additions and 61 deletions

View File

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