Solved day 5
This commit is contained in:
parent
c92c8843e9
commit
5030dfa2a4
11 changed files with 786 additions and 14 deletions
0
src/day06/input.txt
Normal file
0
src/day06/input.txt
Normal file
15
src/day06/part1.rs
Normal file
15
src/day06/part1.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use crate::utilities::*;
|
||||
|
||||
pub fn part1() -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part1() {
|
||||
assert_eq!(part1(), 0);
|
||||
}
|
||||
}
|
15
src/day06/part2.rs
Normal file
15
src/day06/part2.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use crate::utilities::*;
|
||||
|
||||
pub fn part2() -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part2() {
|
||||
assert_eq!(part2(), 0);
|
||||
}
|
||||
}
|
14
src/day06/solve.rs
Normal file
14
src/day06/solve.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
mod part1;
|
||||
mod part2;
|
||||
mod utilities;
|
||||
|
||||
fn main() {
|
||||
let _input = include_str!("./input.txt");
|
||||
let _structured_input = utilities::parse(_input);
|
||||
|
||||
println!("Part One");
|
||||
println!("Result: {}", part1::part1());
|
||||
|
||||
println!("Part Two");
|
||||
println!("Result: {}", part2::part2());
|
||||
}
|
16
src/day06/utilities.rs
Normal file
16
src/day06/utilities.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
pub fn parse(input: &str) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
let input =
|
||||
"test"
|
||||
;
|
||||
assert_eq!(parse(input), 0);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue