Setup for 2022

This commit is contained in:
2022-12-02 06:30:14 +01:00
parent f9463ba6c1
commit c889b75029
5 changed files with 110 additions and 0 deletions

28
2022/src/bin/template.rs Normal file
View 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
}
}