Skip to content

Commit aa3f2c5

Browse files
committed
chore(08/2015): init day
1 parent e065c58 commit aa3f2c5

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/solutions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
9292
5 => Box::new(year2015::day05::Day05),
9393
6 => Box::new(year2015::day06::Day06),
9494
7 => Box::new(year2015::day07::Day07),
95+
8 => Box::new(year2015::day08::Day08),
9596
_ => panic!("Day not exist"),
9697
},
9798
}

src/solutions/year2015/day08.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
use crate::solutions::Solution;
2+
3+
pub struct Day08;
4+
5+
impl Solution for Day08 {
6+
fn part_one(&self, _input: &str) -> String {
7+
String::from("0")
8+
}
9+
10+
fn part_two(&self, _input: &str) -> String {
11+
String::from("0")
12+
}
13+
}
14+
15+
#[cfg(test)]
16+
mod tests {
17+
use super::*;
18+
19+
#[test]
20+
fn part_one_example_test() {
21+
assert_eq!("0", Day08.part_one("0"));
22+
}
23+
}

src/solutions/year2015/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pub mod day04;
55
pub mod day05;
66
pub mod day06;
77
pub mod day07;
8+
pub mod day08;

0 commit comments

Comments
 (0)