Skip to content

Commit

Permalink
Break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and YeungOnion committed May 24, 2024
1 parent 6f78481 commit 37bd70d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/distribution/laplace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,13 @@ mod tests {
#[test]
fn test_entropy() {
let entropy = |x: Laplace| x.entropy().unwrap();
test_almost(f64::NEG_INFINITY, 0.1, (2.0 * f64::consts::E * 0.1).ln(), 1E-12, entropy);
test_almost(
f64::NEG_INFINITY,
0.1,
(2.0 * f64::consts::E * 0.1).ln(),
1E-12,
entropy,
);
test_almost(-6.0, 1.0, (2.0 * f64::consts::E).ln(), 1E-12, entropy);
test_almost(1.0, 7.0, (2.0 * f64::consts::E * 7.0).ln(), 1E-12, entropy);
test_almost(5., 10., (2. * f64::consts::E * 10.).ln(), 1E-12, entropy);
Expand Down

0 comments on commit 37bd70d

Please sign in to comment.