Skip to content

Commit

Permalink
test: Add test in case of #212 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 23, 2024
1 parent b3b8fd2 commit afc1f24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_eggstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ def eggstorage(tmpdir):
@pytest.mark.parametrize(
("versions", "expected"),
[
# letter
(["zzz", "b", "ddd", "a", "x"], ["a", "b", "ddd", "x", "zzz"]),
# number
(["10", "1", "9"], ["1", "9", "10"]),
# "r" number
(["r10", "r1", "r9"], ["r1", "r10", "r9"]),
# version
(["2.11", "2.01", "2.9"], ["2.01", "2.9", "2.11"]),
# number and letter
(["123456789", "b3b8fd2"], ["123456789", "b3b8fd2"]),
],
)
def test_sorted_versions(versions, expected):
Expand Down

0 comments on commit afc1f24

Please sign in to comment.