From f0277bc65fcbaa3376e5f86e9fe9d47134a34915 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Sun, 17 Jun 2018 19:21:33 +1000 Subject: [PATCH] Replace `assert_eq` with `assert` `assert_eq` will eventually be deprecated as per RFC 2011 (https://github.com/rust-lang/rfcs/pull/2011). Signed-off-by: JP-Ellis --- src/particle.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/particle.rs b/src/particle.rs index 08fddac5fa..adf57ea221 100644 --- a/src/particle.rs +++ b/src/particle.rs @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); }