dumb_shit/2022-aoc/template.rs

38 lines
596 B
Rust
Raw Normal View History

2022-12-09 20:57:09 +00:00
use aoc_runner_derive::{aoc as aoc_run, aoc_generator};
type INPUT = char;
#[aoc_generator(dayDAY)]
fn parse_input(input: &str) -> Vec<INPUT> {
todo!()
}
#[aoc_run(dayDAY, part1)]
2022-12-10 19:46:20 +00:00
fn part1(input: &[INPUT]) -> u32 {
2022-12-09 20:57:09 +00:00
0
}
#[aoc_run(dayDAY, part2)]
2022-12-10 19:46:20 +00:00
fn part2(input: &[INPUT]) -> u32 {
2022-12-09 20:57:09 +00:00
0
}
2022-12-10 23:18:39 +00:00
2022-12-11 18:49:33 +00:00
#[cfg(test)]
2022-12-10 23:18:39 +00:00
mod test {
use super::*;
const INPUT: &str = "";
#[test]
fn part1_test() {
let v = parse_input(INPUT);
2022-12-11 18:49:33 +00:00
assert_eq!(part1(&v), 1);
2022-12-10 23:18:39 +00:00
}
#[test]
fn part2_test() {
let v = parse_input(INPUT);
2022-12-11 18:49:33 +00:00
assert_eq!(part2(&v), 1);
2022-12-10 23:18:39 +00:00
}
}