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