feat: update template
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user