3fc010301d
Quick CI / quick-test (push) Failing after 1m12s
Multi-Platform CI / test-platforms (ubuntu-22.04) (push) Successful in 7m13s
Multi-Platform CI / test-platforms (windows-latest) (push) Successful in 7m8s
Multi-Platform CI / package (ubuntu-22.04) (push) Failing after 7m12s
Multi-Platform CI / package (windows-latest) (push) Failing after 7m13s
8 lines
254 B
Rust
8 lines
254 B
Rust
#[test]
|
|
fn bmi_works() {
|
|
let bmi = medicallib_rust::calculate_bmi(70.0, 1.75).unwrap();
|
|
assert!((bmi - 22.857145).abs() < 1e-5);
|
|
let cls = medicallib_rust::classify_bmi(bmi);
|
|
assert_eq!(cls, medicallib_rust::BMIClassification::Normal);
|
|
}
|