Skip to content

Commit 8c664d1

Browse files
committed
chore(09/2025): init day
1 parent 6cbda10 commit 8c664d1

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

src/solutions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
2323
6 => Box::new(year2025::day06::Day06),
2424
7 => Box::new(year2025::day07::Day07),
2525
8 => Box::new(year2025::day08::Day08::default()),
26+
9 => Box::new(year2025::day09::Day09),
2627
_ => panic!("Day not exist"),
2728
},
2829
Year::Year2024 => match i {

src/solutions/year2025/day09.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 Day09;
4+
5+
impl Solution for Day09 {
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::day09::Day09;
18+
use crate::solutions::Solution;
19+
20+
const EXAMPLE: &str = r#""#;
21+
22+
#[test]
23+
fn part_one_example_test() {
24+
assert_eq!("0", Day09.part_one(EXAMPLE));
25+
}
26+
}

src/solutions/year2025/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ pub mod day05;
66
pub mod day06;
77
pub mod day07;
88
pub mod day08;
9+
pub mod day09;

0 commit comments

Comments
 (0)