Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
Replace assert_eq with assert
Browse files Browse the repository at this point in the history
`assert_eq` will eventually be deprecated as per RFC
2011 (rust-lang/rfcs#2011).

Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Jun 17, 2018
1 parent ad265c5 commit f0277bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/particle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mod test {
assert!(!particle.is_fermionic());
assert!(!particle.is_complex());

assert_eq!(particle.entropy_dof(1e-10), 1.0);
assert!(particle.entropy_dof(1e-10) == 1.0);
assert!(particle.entropy_dof(1e10) < 1e-30);
}

Expand All @@ -114,7 +114,7 @@ mod test {
assert!(!particle.is_fermionic());
assert!(particle.is_complex());

assert_eq!(particle.entropy_dof(1e-10), 2.0);
assert!(particle.entropy_dof(1e-10) == 2.0);
assert!(particle.entropy_dof(1e10) < 1e-30);
}

Expand All @@ -126,7 +126,7 @@ mod test {
assert!(particle.is_fermionic());
assert!(!particle.is_complex());

assert_eq!(particle.entropy_dof(1e-10), 2.0 * 0.875);
assert!(particle.entropy_dof(1e-10) == 2.0 * 0.875);
assert!(particle.entropy_dof(1e10) < 1e-30);
}

Expand All @@ -138,7 +138,7 @@ mod test {
assert!(!particle.is_fermionic());
assert!(!particle.is_complex());

assert_eq!(particle.entropy_dof(1e-10), 3.0);
assert!(particle.entropy_dof(1e-10) == 3.0);
assert!(particle.entropy_dof(1e10) < 1e-30);
}

Expand All @@ -150,7 +150,7 @@ mod test {
assert!(!particle.is_fermionic());
assert!(particle.is_complex());

assert_eq!(particle.entropy_dof(1e-10), 2.5);
assert!(particle.entropy_dof(1e-10) == 2.5);
assert!(particle.entropy_dof(1e10) < 1e-30);
}

Expand Down

0 comments on commit f0277bc

Please sign in to comment.