-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from MC-kit/devel
fix saving nuclides
- Loading branch information
Showing
7 changed files
with
93 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "xpypact" | ||
version = "0.5.4" | ||
version = "0.5.5" | ||
description = "\"Python workflow framework for FISPACT.\"" | ||
authors = ["dvp <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
from xpypact.nuclide import Nuclide | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"a,b,eq,order", | ||
[ | ||
(("H", 1, "", 10010), ("H", 1, "", 10010), True, False), | ||
(("H", 1, "", 10010), ("H", 2, "", 10020), False, True), | ||
], | ||
) | ||
def test_equality_and_comparison( | ||
a: tuple[str, int, str, int], | ||
b: tuple[str, int, str, int], | ||
eq: bool, # noqa: FBT001 | ||
order: bool, # noqa: FBT001 | ||
) -> None: | ||
_a = Nuclide(*a).info | ||
_b = Nuclide(*b).info | ||
assert eq == (_a == _b) | ||
assert order == (_a < _b) |