feat: add template
This commit is contained in:
parent
0279c63a39
commit
4c0b4fb32d
3 changed files with 51 additions and 0 deletions
43
src/solutions/template.rs
Normal file
43
src/solutions/template.rs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue