Put tests in sub module for template.

This commit is contained in:
Bill Thiede 2021-12-04 21:46:49 -08:00
parent 02ebdf3613
commit 4e37406c53

View File

@ -21,6 +21,10 @@ fn part2(depths: &[u32]) -> Result<u32> {
} }
*/ */
#[cfg(test)]
mod tests {
use super::*;
#[test] #[test]
fn test_part1() -> Result<()> { fn test_part1() -> Result<()> {
let input = r#" let input = r#"
@ -40,3 +44,4 @@ fn test_part2()->Result<()> {
Ok(()) Ok(())
} }
*/ */
}