feat: add template

This commit is contained in:
uku 2024-12-01 14:07:50 +01:00
parent 0279c63a39
commit 4c0b4fb32d
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 51 additions and 0 deletions

43
src/solutions/template.rs Normal file
View file

@ -0,0 +1,43 @@
use crate::common::{Answer, Solution};
pub struct DayXX;
impl Solution for DayXX {
fn name(&self) -> &'static str {
""
}
fn part_a(&self, input: &str) -> Answer {
Answer::Unimplemented
}
fn part_b(&self, input: &str) -> Answer {
Answer::Unimplemented
}
}
#[cfg(test)]
mod test {
use super::DayXX;
use crate::common::Solution;
use indoc::indoc;
const INPUT_A: &str = indoc! {"
"};
const INPUT_B: &str = indoc! {"
"};
#[test]
fn part_a() {
assert_eq!(DayXX.part_a(INPUT_A), crate::common::Answer::Unimplemented);
}
#[test]
fn part_b() {
assert_eq!(DayXX.part_b(INPUT_B), crate::common::Answer::Unimplemented);
}
}