feat: update template

This commit is contained in:
2025-11-17 23:43:29 -03:00
parent 0000015041
commit 00000160b4
35 changed files with 333 additions and 509 deletions

View File

@@ -59,21 +59,20 @@ pub fn part_one(input: &str) -> Option<usize> {
pub fn part_two(input: &str) -> Option<usize> {
Some(decompress(input, true))
}
fn main() {
let input = &aoc::read_file("inputs", 9);
aoc::solve!(part_one, part_two, input);
}
aoc::solution!(9);
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_part_one() {
let input = aoc::read_file("examples", 9);
let input = aoc::template::read_file("examples", 9);
assert_eq!(part_one(&input), Some(238));
}
#[test]
fn test_part_two() {
let input = aoc::read_file("examples", 9);
let input = aoc::template::read_file("examples", 9);
assert_eq!(part_two(&input), Some(445));
}
}