2022-12-02 14:14:02 -06:00
|
|
|
mod common;
|
|
|
|
|
2022-12-04 01:55:11 -06:00
|
|
|
type Input = String;
|
|
|
|
type Result = usize;
|
2022-12-04 01:25:36 -06:00
|
|
|
|
2022-12-04 01:55:11 -06:00
|
|
|
fn processed_input(input: &str) -> Input {
|
|
|
|
input.to_owned()
|
2022-12-02 14:14:02 -06:00
|
|
|
}
|
|
|
|
|
2022-12-04 01:55:11 -06:00
|
|
|
fn part1(input: &Input) -> Result {
|
2022-12-04 02:11:08 -06:00
|
|
|
100
|
2022-12-02 14:14:02 -06:00
|
|
|
}
|
|
|
|
|
2022-12-04 01:55:11 -06:00
|
|
|
fn part2(input: &Input) -> Result {
|
2022-12-02 14:14:02 -06:00
|
|
|
0
|
|
|
|
}
|
|
|
|
|
2022-12-04 01:55:11 -06:00
|
|
|
fn main() {
|
2022-12-04 02:11:08 -06:00
|
|
|
let input_text = common::day_input(panic!(
|
2022-12-04 01:55:11 -06:00
|
|
|
"PUT THE CORRECT DAY NUMBER HERE AND ADD bin TO Cargo.toml"
|
2022-12-04 02:11:08 -06:00
|
|
|
));
|
|
|
|
eprintln!("{}\n\nAbove is your input file.\n\n", input_text);
|
|
|
|
let input = processed_input(&input_text);
|
2022-12-04 01:55:11 -06:00
|
|
|
common::show_answers(&part1(&input), &part2(&input))
|
|
|
|
// common::show_both_answers(&both_parts(&input))
|
|
|
|
}
|
|
|
|
|
|
|
|
// fn both_parts(input: &Input) -> (Result, Result) {
|
|
|
|
// (0, 0)
|
|
|
|
// }
|
|
|
|
|
2022-12-02 14:14:02 -06:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
const TEST_INPUT: &str = "";
|
|
|
|
|
|
|
|
#[test]
|
2022-12-04 01:55:11 -06:00
|
|
|
fn test() {
|
|
|
|
let input = processed_input(TEST_INPUT);
|
|
|
|
assert_eq!(part1(&input), 0);
|
|
|
|
assert_eq!(part2(&input), 0);
|
2022-12-04 01:55:47 -06:00
|
|
|
// assert_eq!(both_parts(&input), (0, 0));
|
2022-12-02 14:14:02 -06:00
|
|
|
}
|
|
|
|
}
|