summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Ek <mail@ekmartin.com>2016-03-07 13:22:13 +0100
committerMartin Ek <mail@ekmartin.com>2016-03-07 13:22:13 +0100
commit2d3f694f852ac1619d673b67b115cb9bbb352c5e (patch)
tree57cc02af9977f44a43dc1c98b77c70820ffc341b /tests
parentb08014a65eabfa8dfe372bdf0aa8195309f6e736 (diff)
downloadsemantic-version-2d3f694f852ac1619d673b67b115cb9bbb352c5e.tar.gz
Fix a bug with compatible release clauses and patch versions
Previously, if the patch version was 0 (i.e. as in ~=2.2.0), this would cause the range to be interpreted as ~=2.2.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_base.py b/tests/test_base.py
index 0675b24..a1255c3 100755
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -518,6 +518,10 @@ class SpecItemTestCase(unittest.TestCase):
['1.4.5', '1.4.10-alpha', '1.4.10'],
['1.3.6', '1.4.4', '1.5.0'],
),
+ '~=1.4.0': (
+ ['1.4.0', '1.4.10-alpha', '1.4.10'],
+ ['1.3.6', '1.3.9', '1.5.0'],
+ ),
'~=1.4': (
['1.4.0', '1.6.10-alpha', '1.6.10'],
['1.3.0', '2.0.0'],