Skip to content

Commit

Permalink
more clamp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 17, 2020
1 parent 7e1ed1a commit 2cfb923
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ def test_clamp():
assert measurement.clamp(10, 50) == Measurement(20, 50)
assert measurement.clamp(30, 50) == Measurement(30, 50)
assert measurement.clamp(None, 50) == Measurement(20, 50)
assert measurement.clamp(30, None) == Measurement(30, 100)
assert measurement.clamp(None, None) == Measurement(20, 100)

0 comments on commit 2cfb923

Please sign in to comment.