Stub implementation template.
This commit is contained in:
parent
76da21b3cc
commit
ccc258bcb2
34
2021/src/template.rs
Normal file
34
2021/src/template.rs
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#[aoc_generator(dayX)]
|
||||||
|
fn parse(input: &str) -> Vec<u32> {
|
||||||
|
todo!("parse")
|
||||||
|
}
|
||||||
|
|
||||||
|
#[aoc(dayX, part1)]
|
||||||
|
fn part1(depths: &[u32]) -> u32 {
|
||||||
|
todo!("part1")
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
#[aoc(dayX, part2)]
|
||||||
|
fn part2(depths: &[u32]) -> u32 {
|
||||||
|
todo!("part2")
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_part1() {
|
||||||
|
let input = r#"
|
||||||
|
"#
|
||||||
|
.trim();
|
||||||
|
assert_eq!(part1(&parse(input)), TODO);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
#[test]
|
||||||
|
fn test_part2() {
|
||||||
|
let input = r#"
|
||||||
|
"#
|
||||||
|
.trim();
|
||||||
|
assert_eq!(part2(&parse(input)), TODO);
|
||||||
|
}
|
||||||
|
*/
|
||||||
Loading…
x
Reference in New Issue
Block a user