|
|
|
@ -39,8 +39,9 @@ class CargoVersionTest(unittest.TestCase): |
|
|
|
|
('0.0', ['< 1']), |
|
|
|
|
('0', ['< 1']), |
|
|
|
|
('0.0.5', ['>= 0.0.5', '< 0.0.6']), |
|
|
|
|
('0.5.0', ['>= 0.5', '< 0.6']), |
|
|
|
|
('0.5.0', ['>= 0.5.0', '< 0.6']), |
|
|
|
|
('0.5', ['>= 0.5', '< 0.6']), |
|
|
|
|
('1.0.45', ['>= 1.0.45', '< 2']), |
|
|
|
|
|
|
|
|
|
# Caret (Which is the same as unqualified) |
|
|
|
|
('^2', ['>= 2', '< 3']), |
|
|
|
@ -50,7 +51,7 @@ class CargoVersionTest(unittest.TestCase): |
|
|
|
|
('^0.0', ['< 1']), |
|
|
|
|
('^0', ['< 1']), |
|
|
|
|
('^0.0.5', ['>= 0.0.5', '< 0.0.6']), |
|
|
|
|
('^0.5.0', ['>= 0.5', '< 0.6']), |
|
|
|
|
('^0.5.0', ['>= 0.5.0', '< 0.6']), |
|
|
|
|
('^0.5', ['>= 0.5', '< 0.6']), |
|
|
|
|
|
|
|
|
|
# Multiple requirements |
|
|
|
|