Skip to content

Commit ad469bf

Browse files
committed
chore(05/2025): init day
1 parent db69f21 commit ad469bf

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
| [Day 2: Gift Shop](src/solutions/year2025/day02.rs) | ⭐⭐ | 65.103 | 81.719 |
1616
| [Day 3: Lobby](src/solutions/year2025/day03.rs) | ⭐⭐ | 0.131 | 0.133 |
1717
| [Day 4: Printing Department](src/solutions/year2025/day04.rs) | ⭐⭐ | 3.615 | 9.998 |
18+
| [Day 5: Cafeteria](src/solutions/year2025/day05.rs) | | - | - |
1819

1920
# 2024
2021

src/solutions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
1919
2 => Box::new(year2025::day02::Day02),
2020
3 => Box::new(year2025::day03::Day03),
2121
4 => Box::new(year2025::day04::Day04),
22+
5 => Box::new(year2025::day05::Day05),
2223
_ => panic!("Day not exist"),
2324
},
2425
Year::Year2024 => match i {

src/solutions/year2025/day05.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
use crate::solutions::Solution;
2+
3+
pub struct Day05;
4+
5+
impl Solution for Day05 {
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::day05::Day05;
18+
use crate::solutions::Solution;
19+
20+
const EXAMPLE: &str = r#""#;
21+
22+
#[test]
23+
fn part_one_example_test() {
24+
assert_eq!("0", Day05.part_one(EXAMPLE));
25+
}
26+
}

src/solutions/year2025/mod.rs

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

0 commit comments

Comments
 (0)