Skip to content

Commit 1a27208

Browse files
committed
chore(08/2025): init day
1 parent 0c50fc9 commit 1a27208

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| [Day 5: Cafeteria](src/solutions/year2025/day05.rs) | ⭐⭐ | 0.275 | 0.469 |
1919
| [Day 6: Trash Compactor](src/solutions/year2025/day06.rs) | ⭐⭐ | 0.117 | 2.577 |
2020
| [Day 7: Laboratories](src/solutions/year2025/day07.rs) | ⭐⭐ | 6.711 | 5.789 |
21+
| [Day 8: Playground](src/solutions/year2025/day08.rs) | | - | - |
2122

2223
# 2024
2324

src/solutions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
2222
5 => Box::new(year2025::day05::Day05),
2323
6 => Box::new(year2025::day06::Day06),
2424
7 => Box::new(year2025::day07::Day07),
25+
8 => Box::new(year2025::day08::Day08),
2526
_ => panic!("Day not exist"),
2627
},
2728
Year::Year2024 => match i {

src/solutions/year2025/day08.rs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 crate::solutions::year2025::day08::Day08;
18+
use crate::solutions::Solution;
19+
20+
const EXAMPLE: &str = r#""#;
21+
22+
#[test]
23+
fn part_one_example_test() {
24+
assert_eq!("0", Day08.part_one(EXAMPLE));
25+
}
26+
27+
#[test]
28+
fn part_two_example_test() {
29+
assert_eq!("0", Day08.part_two(EXAMPLE));
30+
}
31+
}

src/solutions/year2025/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)