Changed an integration test to take path as &str

This commit is contained in:
Josh Mitchell
2020-11-08 00:26:30 +11:00
parent e67b6a0e5f
commit 4a99228d87

View File

@@ -7,9 +7,7 @@ mod integration {
#[test]
fn test_use_library() {
let path = Path::new("tests/1l2y.xtc");
let mut trj = XTCTrajectory::open(path, FileMode::Read).unwrap();
let mut trj = XTCTrajectory::open("tests/1l2y.xtc", FileMode::Read).unwrap();
let num_atoms = trj.get_num_atoms().unwrap();
let mut frame = Frame::with_capacity(num_atoms);