diff --git a/src/exercises/day-2/points-polygons.rs b/src/exercises/day-2/points-polygons.rs index 78fd13fb..0d7c1d23 100644 --- a/src/exercises/day-2/points-polygons.rs +++ b/src/exercises/day-2/points-polygons.rs @@ -207,6 +207,7 @@ mod tests { fn test_shape_circumferences() { let mut poly = Polygon::new(); poly.add_point(Point::new(12, 13)); + poly.add_point(Point::new(17, 11)); poly.add_point(Point::new(16, 16)); let shapes = vec![ Shape::from(poly), @@ -217,7 +218,7 @@ mod tests { .map(Shape::circumference) .map(round_two_digits) .collect::>(); - assert_eq!(circumferences, vec![10.0, 31.42]); + assert_eq!(circumferences, vec![15.48, 31.42]); } } // ANCHOR_END: unit-tests