Skip to content

Commit

Permalink
added test to highlight the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
burnpanck committed Jul 14, 2021
1 parent 0484c2a commit 3271e56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pint/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ def test_issue354_356_370(self):
assert "{:~}".format(1 * self.ureg.count) == "1 count"
assert "{:~}".format(1 * self.ureg("MiB")) == "1 MiB"

def test_issue_386(self):
x = ureg.Quantity(7, "degC")
y = ureg.Quantity("7 degC")
assert x == y

def test_issue468(self):
@ureg.wraps("kg", "meter")
def f(x):
Expand Down

0 comments on commit 3271e56

Please sign in to comment.