Skip to content

Commit

Permalink
update doctests to reflect removal of int ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Dec 4, 2023
1 parent 8153b86 commit ac21b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nettlesome/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def reverse_meaning(self) -> None:
"""
Change self.sign in place to reverse the range of numbers covered.
>>> quantity_range = UnitRange(quantity="100 meters", sign=">")
>>> quantity_range = UnitRange(quantity_magnitude="100", quantity_units="meters", sign=">")
>>> str(quantity_range)
'greater than 100 meter'
>>> quantity_range.reverse_meaning()
Expand Down Expand Up @@ -528,7 +528,7 @@ def interval(self) -> Union[FiniteSet, Interval, sympy.Union]:
... sign=">=",
... expression="10 grams")
>>> weight.interval
Interval(10, oo)
Interval(10.0000000000000, oo)
"""
return self.quantity_range.interval
Expand Down

0 comments on commit ac21b22

Please sign in to comment.