mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Very quick implementation for day 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user