Skip to content

Commit

Permalink
Loosen test_case for is_quantity_close
Browse files Browse the repository at this point in the history
  • Loading branch information
maxentile committed Jan 19, 2018
1 parent 9e075c3 commit 7c6bbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmmtools/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_math_eval():
def test_is_quantity_close():
"""Test is_quantity_close method."""
# (quantity1, quantity2, test_result)
test_cases = [(300.0*unit.kelvin, 300.000000004*unit.kelvin, True),
test_cases = [(300.0*unit.kelvin, 300.0000000004*unit.kelvin, True),
(300.0*unit.kelvin, 300.00000004*unit.kelvin, False),
(1.01325*unit.bar, 1.01325000006*unit.bar, True),
(1.01325*unit.bar, 1.0132500006*unit.bar, False)]
Expand Down

0 comments on commit 7c6bbb9

Please sign in to comment.