Skip to content

Commit

Permalink
Add passing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
DNIIBOY committed Feb 24, 2024
1 parent 22680e2 commit d3c617f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chempy/chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __hash__(self) -> int:
hash,
(
getattr(self, k)
for k in self.attrs
for k in ("name", "latex_name", "unicode_name", "html_name")
),
)
)
Expand Down
1 change: 1 addition & 0 deletions chempy/tests/test_chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_Substance():
assert s.composition == {0: 1, 1: 1}
assert s.charge == 1
assert abs(s.mass - 1.008) < 1e-3
assert s in {s: 1}


def test_Substance__2():
Expand Down

0 comments on commit d3c617f

Please sign in to comment.