Setup for 2022
This commit is contained in:
28
2022/src/bin/template.rs
Normal file
28
2022/src/bin/template.rs
Normal file
@@ -0,0 +1,28 @@
|
||||
use aoc::Solver;
|
||||
|
||||
pub struct Day {}
|
||||
fn main() {
|
||||
Day::solve();
|
||||
}
|
||||
#[test]
|
||||
fn part1() {
|
||||
Day::test(aoc::Part::ONE);
|
||||
}
|
||||
#[test]
|
||||
fn part2() {
|
||||
Day::test(aoc::Part::TWO);
|
||||
}
|
||||
|
||||
|
||||
impl aoc::Solver for Day {
|
||||
fn day() -> u8 {
|
||||
0
|
||||
}
|
||||
fn part1(input: &str) -> u32 {
|
||||
input.len() as u32
|
||||
}
|
||||
|
||||
fn part2(input: &str) -> u32 {
|
||||
input.len() as u32
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user