mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Implement day 7 part 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user