Skip to content

Commit

Permalink
last?
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed May 5, 2024
1 parent a950d6a commit bdf772b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qcengine/tests/test_mbe_ne2.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,9 @@ def test_optimization_qcmanybody(optimizer, bsse_type):
"cp": 2.27 / constants.bohr2angstroms,
}
r_fh_computed = ret.final_molecule.measure([1, 3])
assert pytest.approx(r_fh_computed, 1.0e-2) == r_fh_hb[bsse_type], f"hydrogen bond length computed ({r_fh_computed}) != expected ({r_fh_hb[bsse_type]})"
assert len(ret.trajectory) == 2, f"trajectory protocol did not take. {len(ret.trajectory)=} != 2 (initial_and_final)"
assert (
pytest.approx(r_fh_computed, 1.0e-2) == r_fh_hb[bsse_type]
), f"hydrogen bond length computed ({r_fh_computed}) != expected ({r_fh_hb[bsse_type]})"
assert (
len(ret.trajectory) == 2
), f"trajectory protocol did not take. len(ret.trajectory)={len(ret.trajectory)} != 2 (initial_and_final)"

0 comments on commit bdf772b

Please sign in to comment.