Skip to content

Commit 3d1f34c

Browse files
author
Guillaume Fraux
committed
Update dependencies
1 parent 3cfd3cc commit 3d1f34c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ authors = ["Guillaume Fraux <[email protected]>"]
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
lumol-core = {git = "https://github.com/lumol-org/lumol", rev = "788c94e"}
11-
cpython = {git = "https://github.com/dgrunwald/rust-cpython/", rev = "4773d2e3"}
10+
lumol-core = {git = "https://github.com/lumol-org/lumol", rev="c172b88b"}
11+
cpython = {git = "https://github.com/dgrunwald/rust-cpython", rev="4773d2e3"}
1212

1313
[dev-dependencies]
1414
approx = "*"

src/systems/particle.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,29 +155,29 @@ mod tests {
155155
let gil = Python::acquire_gil();
156156
let py = gil.python();
157157
let particle = create_instance!(py, Particle, ("He",));
158-
assert!(particle.name(py).unwrap() == "He");
158+
assert_eq!(particle.name(py).unwrap(), "He");
159159
particle.set_name(py, "Kr").unwrap();
160-
assert!(particle.name(py).unwrap() == "Kr");
160+
assert_eq!(particle.name(py).unwrap(), "Kr");
161161
}
162162

163163
#[test]
164164
fn mass() {
165165
let gil = Python::acquire_gil();
166166
let py = gil.python();
167167
let particle = create_instance!(py, Particle, ("He",));
168-
assert!(particle.mass(py).unwrap() == 4.0026021003723145);
168+
assert_eq!(particle.mass(py).unwrap(), 4.002602);
169169
particle.set_mass(py, 42.0).unwrap();
170-
assert!(particle.mass(py).unwrap() == 42.0);
170+
assert_eq!(particle.mass(py).unwrap(), 42.0);
171171
}
172172

173173
#[test]
174174
fn charge() {
175175
let gil = Python::acquire_gil();
176176
let py = gil.python();
177177
let particle = create_instance!(py, Particle, ("He",));
178-
assert!(particle.charge(py).unwrap() == 0.0);
178+
assert_eq!(particle.charge(py).unwrap(), 0.0);
179179
particle.set_charge(py, 2.0).unwrap();
180-
assert!(particle.charge(py).unwrap() == 2.0);
180+
assert_eq!(particle.charge(py).unwrap(), 2.0);
181181
}
182182
}
183183

@@ -205,7 +205,7 @@ mod tests {
205205
let particle = create_instance!(py, Particle, ("He",));
206206

207207
py_run_with!(py, particle;
208-
"assert particle.mass() == 4.0026021003723145",
208+
"assert particle.mass() == 4.002602",
209209
"particle.set_mass(33)",
210210
"assert particle.mass() == 33"
211211
);

0 commit comments

Comments
 (0)