Skip to content

Commit ed0a3c6

Browse files
committed
tests: add tests
1 parent 372fb7d commit ed0a3c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_version_compare.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def test_lt(self):
3434
assert Version("0.0.0.20190813141303.74dc4d7220e7") < Version(
3535
"0.0.0.20200813141303"
3636
)
37+
assert Version("1.1.0l.1~deb9u2") < Version("2.0.0-1+deb9u1")
38+
assert Version("1.1.0l.1~deb9u2") < Version("1.1.0m")
3739

3840
def test_gt(self):
3941
"""Make sure > works between versions, including some with unusual version schemes"""
@@ -50,6 +52,7 @@ def test_gt(self):
5052
assert Version("0.0.0.20200813141303") > Version(
5153
"0.0.0.20190813141303.74dc4d7220e7"
5254
)
55+
assert Version("1.1.0m") > Version("1.1.0l.1~deb9u2")
5356

5457
def test_error(self):
5558
"""Make sure 'unknown' and blank strings raise appropriate errors"""

0 commit comments

Comments
 (0)