File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1717| [ Day 4: Printing Department] ( src/solutions/year2025/day04.rs ) | ⭐⭐ | 3.615 | 9.998 |
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 |
20+ | [ Day 7: Laboratories] ( src/solutions/year2025/day07.rs ) | - | - | - |
2021
2122# 2024
2223
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ pub fn solution(puzzle_day: PuzzleDay) -> Box<dyn Solution> {
2121 4 => Box :: new ( year2025:: day04:: Day04 ) ,
2222 5 => Box :: new ( year2025:: day05:: Day05 ) ,
2323 6 => Box :: new ( year2025:: day06:: Day06 ) ,
24+ 7 => Box :: new ( year2025:: day07:: Day07 ) ,
2425 _ => panic ! ( "Day not exist" ) ,
2526 } ,
2627 Year :: Year2024 => match i {
Original file line number Diff line number Diff line change 1+ use crate :: solutions:: Solution ;
2+
3+ pub struct Day07 ;
4+
5+ impl Solution for Day07 {
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:: day07:: Day07 ;
18+ use crate :: solutions:: Solution ;
19+
20+ const EXAMPLE : & str = r#""# ;
21+
22+ #[ test]
23+ fn part_one_example_test ( ) {
24+ assert_eq ! ( "0" , Day07 . part_one( EXAMPLE ) ) ;
25+ }
26+ }
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ pub mod day03;
44pub mod day04;
55pub mod day05;
66pub mod day06;
7+ pub mod day07;
You can’t perform that action at this time.
0 commit comments