Skip to content

Commit 4f0e12c

Browse files
committed
Make inclusive range test more strict
1 parent f727bd1 commit 4f0e12c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/distributions/uniform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,6 @@ mod tests {
10771077
let r = Uniform::from(2.0f64..=7.0);
10781078
assert_eq!(r.inner.low, 2.0);
10791079
assert!(r.inner.scale > 5.0);
1080-
assert!(r.inner.scale < 5.0 + 1e15);
1080+
assert!(r.inner.scale < 5.0 + 1e-14);
10811081
}
10821082
}

0 commit comments

Comments
 (0)