add test section to template

This commit is contained in:
Joe Ardent 2022-12-10 15:18:39 -08:00
parent 714405d466
commit af99955fc2

View file

@ -16,3 +16,22 @@ fn part1(input: &[INPUT]) -> u32 {
fn part2(input: &[INPUT]) -> u32 { fn part2(input: &[INPUT]) -> u32 {
0 0
} }
#[cgf(test)]
mod test {
use super::*;
const INPUT: &str = "";
#[test]
fn part1_test() {
let v = parse_input(INPUT);
assert_eq!(part1(&vm), 1);
}
#[test]
fn part2_test() {
let v = parse_input(INPUT);
assert_eq!(part2(&vm), 1);
}
}