mirror of
https://github.com/kristoferssolo/Advent-of-Code.git
synced 2025-12-31 05:32:31 +00:00
24 lines
607 B
Rust
24 lines
607 B
Rust
use miette::miette;
|
|
#[tracing::instrument]
|
|
#[allow(clippy::missing_panics_doc)]
|
|
#[allow(clippy::missing_errors_doc)]
|
|
pub fn process(input: &str) -> miette::Result<usize> {
|
|
todo!("day xx - part 1");
|
|
Ok(0)
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn test_process() -> miette::Result<()> {
|
|
let input = "[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}
|
|
[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2}
|
|
[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5}";
|
|
let result = 0;
|
|
assert_eq!(process(input)?, result);
|
|
Ok(())
|
|
}
|
|
}
|