Put tests in sub module for template.
This commit is contained in:
parent
02ebdf3613
commit
4e37406c53
@ -21,6 +21,10 @@ fn part2(depths: &[u32]) -> Result<u32> {
|
||||
}
|
||||
*/
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part1() -> Result<()> {
|
||||
let input = r#"
|
||||
@ -40,3 +44,4 @@ fn test_part2()->Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user