day7: boilerplate

This commit is contained in:
2025-12-06 21:00:19 -08:00
parent c8e03e6d6d
commit 86fd61aa15
3 changed files with 34 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ repos:
language: system
- id: rust-clippy
name: Rust clippy
entry: cargo clippy --lib --all-features --tests -- -D warnings
entry: cargo clippy --lib --all-features --tests --
pass_filenames: false
types: [file, rust]
language: system

32
src/day7.rs Normal file
View File

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

View File

@@ -4,6 +4,7 @@ mod day3;
mod day4;
mod day5;
mod day6;
mod day7;
use aoc_runner_derive::aoc_lib;