From 49734821e9e83238241d729b1aba0d3fd4c86466 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 14 Dec 2021 00:25:55 -0700 Subject: [PATCH] add missing testcase to day 9 --- src/day09.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/day09.rs b/src/day09.rs index e44dd8c..73ee77a 100644 --- a/src/day09.rs +++ b/src/day09.rs @@ -160,7 +160,8 @@ mod tests { #[test] fn test_my_data() { - let heightmap = HeightMap::parse(include_str!("../data/day09.txt")).unwrap(); + let mut heightmap = HeightMap::parse(include_str!("../data/day09.txt")).unwrap(); assert_eq!(sum_low_points(&heightmap), 504); + assert_eq!(sum_top3_basins(&mut heightmap), 1558722); } }