Skip to content

Commit c310216

Browse files
committed
add erf and erfc to nondet tests
1 parent 823a6bf commit c310216

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: tests/pass/float.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,8 @@ fn test_non_determinism() {
14241424
ensure_nondet(|| 1.0f32.atan2(2.0f32));
14251425
ensure_nondet(|| 0.5f32.atanh());
14261426
ensure_nondet(|| 5.0f32.gamma());
1427+
ensure_nondet(|| 5.0f32.erf());
1428+
ensure_nondet(|| 5.0f32.erfc());
14271429
}
14281430
pub fn test_operations_f64(a: f64, b: f64) {
14291431
test_operations_f!(a, b);
@@ -1446,6 +1448,8 @@ fn test_non_determinism() {
14461448
ensure_nondet(|| 1.0f64.tanh());
14471449
ensure_nondet(|| 0.5f64.atanh());
14481450
ensure_nondet(|| 5.0f64.gamma());
1451+
ensure_nondet(|| 5.0f64.erf());
1452+
ensure_nondet(|| 5.0f64.erfc());
14491453
}
14501454
pub fn test_operations_f128(a: f128, b: f128) {
14511455
test_operations_f!(a, b);

0 commit comments

Comments
 (0)