Skip to content

Commit d3f8d54

Browse files
committed
chore(06/2015): init day
1 parent e3ebec4 commit d3f8d54

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
| [Day 3: Perfectly Spherical Houses in a Vacuum](src/solutions/year2015/day03.rs) | ⭐⭐ | 0.358 | 0.373 |
9393
| [Day 4: The Ideal Stocking Stuffer](src/solutions/year2015/day04.rs) | ⭐⭐ | 66.769 | 1931.428 |
9494
| [Day 5: Doesn't He Have Intern-Elves For This?](src/solutions/year2015/day05.rs) | ⭐⭐ | 0.261 | 0.987 |
95+
| [Day 6: Probably a Fire Hazard](src/solutions/year2015/day06.rs) | | - | - |
9596

9697
# TODO
9798

src/solutions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
9090
3 => Box::new(year2015::day03::Day03),
9191
4 => Box::new(year2015::day04::Day04),
9292
5 => Box::new(year2015::day05::Day05),
93+
6 => Box::new(year2015::day06::Day06),
9394
_ => panic!("Day not exist"),
9495
},
9596
}

src/solutions/year2015/day06.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 Day06;
4+
5+
impl Solution for Day06 {
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", Day06.part_one(""));
22+
}
23+
}

src/solutions/year2015/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pub mod day02;
33
pub mod day03;
44
pub mod day04;
55
pub mod day05;
6+
pub mod day06;

0 commit comments

Comments
 (0)