day12: boilerplate

This commit is contained in:
2025-12-11 21:00:02 -08:00
parent 19426d1dc8
commit 8cb33180ad
2 changed files with 37 additions and 0 deletions

36
src/day12.rs Normal file
View File

@@ -0,0 +1,36 @@
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);
}
}

View File

@@ -1,6 +1,7 @@
mod day1;
mod day10;
mod day11;
mod day12;
mod day2;
mod day3;
mod day4;