We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3bbf6c commit 32230f1Copy full SHA for 32230f1
third_party/rust-on-exercism/health-statistics.rs
@@ -67,11 +67,13 @@ fn test_visit() {
67
assert_eq!(report.patient_name, "Bob");
68
assert_eq!(report.visit_count, 1);
69
assert_eq!(report.blood_pressure_change, None);
70
+ assert!((report.height_change - 0.9).abs() < 0.00001);
71
72
let report =
73
bob.visit_doctor(Measurements { height: 156.1, blood_pressure: (115, 76) });
74
75
assert_eq!(report.visit_count, 2);
76
assert_eq!(report.blood_pressure_change, Some((-5, -4)));
77
+ assert_eq!(report.height_change, 0.0);
78
}
79
// ANCHOR_END: tests
0 commit comments