From 129c4ea79d304aaa4361190a3dc5b75796c771a7 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Sun, 11 Dec 2022 10:49:33 -0800 Subject: [PATCH] fix test setup in template --- 2022-aoc/template.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2022-aoc/template.rs b/2022-aoc/template.rs index fbde393..45322e0 100644 --- a/2022-aoc/template.rs +++ b/2022-aoc/template.rs @@ -17,7 +17,7 @@ fn part2(input: &[INPUT]) -> u32 { 0 } -#[cgf(test)] +#[cfg(test)] mod test { use super::*; const INPUT: &str = ""; @@ -26,12 +26,12 @@ mod test { fn part1_test() { let v = parse_input(INPUT); - assert_eq!(part1(&vm), 1); + assert_eq!(part1(&v), 1); } #[test] fn part2_test() { let v = parse_input(INPUT); - assert_eq!(part2(&vm), 1); + assert_eq!(part2(&v), 1); } }