Skip to content

Commit 42c1f6d

Browse files
committed
Add specifier tests
1 parent e84e341 commit 42c1f6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_specifiers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ def test_comparison_non_specifier(self):
328328
("2.0.post1", ">=2"),
329329
("2.0.post1.dev1", ">=2"),
330330
("3", ">=2"),
331+
("3.0.0a8", ">=3.0.0a7"),
331332
# Test the less than equal operation
332333
("2.0", "<=2"),
333334
("2.0", "<=2.0"),
@@ -341,16 +342,19 @@ def test_comparison_non_specifier(self):
341342
("2.0c1.post1.dev1", "<=2"),
342343
("2.0rc1", "<=2"),
343344
("1", "<=2"),
345+
("3.0.0a7", "<=3.0.0a8"),
344346
# Test the greater than operation
345347
("3", ">2"),
346348
("2.1", ">2.0"),
347349
("2.0.1", ">2"),
348350
("2.1.post1", ">2"),
349351
("2.1+local.version", ">2"),
352+
("3.0.0a8", ">3.0.0a7"),
350353
# Test the less than operation
351354
("1", "<2"),
352355
("2.0", "<2.1"),
353356
("2.0.dev0", "<2.1"),
357+
("3.0.0a7", "<3.0.0a8"),
354358
# Test the compatibility operation
355359
("1", "~=1.0"),
356360
("1.0.1", "~=1.0"),

0 commit comments

Comments
 (0)