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]
|
#[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(())
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user