add test section to template
This commit is contained in:
parent
714405d466
commit
af99955fc2
1 changed files with 19 additions and 0 deletions
|
@ -16,3 +16,22 @@ fn part1(input: &[INPUT]) -> u32 {
|
|||
fn part2(input: &[INPUT]) -> u32 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue