diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-06-08 16:51:19 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-10-09 21:13:58 -0400 |
commit | ea42d2d01999c00c7fe7846de38416b8693bfb79 (patch) | |
tree | ae58aa5bfa01dc45a0e4ec8b27801292f7677a14 /unittests | |
parent | 019a0c38c6fc97fb3d3d595b3f0fd2c40a8af76f (diff) | |
download | meson-ea42d2d01999c00c7fe7846de38416b8693bfb79.zip meson-ea42d2d01999c00c7fe7846de38416b8693bfb79.tar.gz meson-ea42d2d01999c00c7fe7846de38416b8693bfb79.tar.bz2 |
cargo: Fix '1.0.45' version conversion
The middle 0 was wrongly dropped.
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/cargotests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unittests/cargotests.py b/unittests/cargotests.py index e1bce1c..f0aedd0 100644 --- a/unittests/cargotests.py +++ b/unittests/cargotests.py @@ -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 |