3/4 of the way through day 1.
This commit is contained in:
parent
ea7220bb00
commit
50fbfd5438
10 changed files with 2397 additions and 4 deletions
17
src/template/parse.rs
Normal file
17
src/template/parse.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
pub fn parse(input: &str) -> usize {
|
||||
println!("{}", input);
|
||||
0
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
let input =
|
||||
"test"
|
||||
;
|
||||
assert_eq!(parse(input), 0);
|
||||
}
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
pub fn part1() -> usize {
|
||||
return 0;
|
||||
0
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod day01 {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
pub fn part2() -> usize {
|
||||
return 0;
|
||||
0
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod day01 {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
mod part1;
|
||||
mod part2;
|
||||
mod parse;
|
||||
|
||||
fn main() {
|
||||
let _input = include_str!("./input.txt");
|
||||
let _structured_input = parse::parse(_input);
|
||||
|
||||
println!("Part One");
|
||||
println!("Result: {}", part1::part1());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue