Starting day 3
This commit is contained in:
parent
6f6b8c1d62
commit
95d88256e0
14
2024/rust/src/day3.rs
Normal file
14
2024/rust/src/day3.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
mod prelude;
|
||||||
|
pub use crate::prelude::*;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
show_answers(0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test() {}
|
||||||
|
}
|
|
@ -1,22 +1,8 @@
|
||||||
mod prelude;
|
mod prelude;
|
||||||
use crate::prelude::*;
|
pub use crate::prelude::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
Day5::show(day_input(5), day_input(5))
|
show_answers(0, 0);
|
||||||
}
|
|
||||||
|
|
||||||
struct Day5 {}
|
|
||||||
impl AoCSolution for Day5 {
|
|
||||||
type Input = String;
|
|
||||||
type Solution = usize;
|
|
||||||
|
|
||||||
fn part1(input: Self::Input) -> Self::Solution {
|
|
||||||
0
|
|
||||||
}
|
|
||||||
|
|
||||||
fn part2(input: Self::Input) -> Self::Solution {
|
|
||||||
0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -24,9 +10,5 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {}
|
||||||
let input = r#""#;
|
|
||||||
assert_eq!(Day2::part1(input.into()), 1);
|
|
||||||
assert_eq!(Day2::part2(input.into()), 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue