Skip to content

Commit 3d9dc52

Browse files
committed
fix(rust): resolve test panics by adding missing test macros and snapshots
1 parent 55d2794 commit 3d9dc52

8 files changed

Lines changed: 24 additions & 640 deletions

File tree

2021/_1/src/day01.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ impl Solution for Day01 {
2424
Ok((increments).to_string())
2525
}
2626
}
27+
28+
aoc_rust_common::aoc_test!(Day01);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: 2021/_1/src/day01.rs
3+
expression: result
4+
---
5+
1681
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: 2021/_1/src/day01.rs
3+
expression: result
4+
---
5+
1704

2022/src/day01.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ impl Solution for Day01 {
3939
Ok((sums.iter().take(3).sum::<i32>()).to_string())
4040
}
4141
}
42+
43+
aoc_rust_common::aoc_test!(Day01);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: 2022/src/day01.rs
3+
expression: result
4+
---
5+
71924
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
source: 2022/src/day01.rs
3+
expression: result
4+
---
5+
210406

2025/rust/src/day1.rs

Lines changed: 0 additions & 238 deletions
This file was deleted.

0 commit comments

Comments
 (0)