use aoc_runner_derive::{aoc, aoc_generator}; use rstest::rstest; #[aoc_generator(day12)] fn parse(input: &str) -> String { todo!() } #[aoc(day12, part1)] fn part1(input: &str) -> u64 { todo!() } #[aoc(day12, part2)] fn part2(input: &str) -> u64 { todo!() } #[cfg(test)] mod tests { use super::*; const EXAMPLE: &str = ""; #[rstest] #[case(EXAMPLE, 0)] fn part1_example(#[case] input: &str, #[case] expected: u64) { assert_eq!(part1(&parse(EXAMPLE)), 0); } #[rstest] #[case(EXAMPLE, 0)] fn part2_example(#[case] input: &str, #[case] expected: u64) { assert_eq!(part2(&parse(EXAMPLE)), 0); } }