summaryrefslogtreecommitdiff
path: root/tests/test_match.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2016-02-28 16:13:01 +0000
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2016-02-28 16:13:01 +0000
commitec2c25cd3a46c53adbbdb411239043d237ad077f (patch)
treebf969a20c75142fe0c9fab9379ea00ade91df4da /tests/test_match.py
parentd10ab4cb1d1ca8090132f205017dfc90473c91cc (diff)
parent48dbcc96a9eb4ce6661ea40ff9358d2c432fb27e (diff)
downloadsemantic-version-ec2c25cd3a46c53adbbdb411239043d237ad077f.tar.gz
Merge pull request #38 from ekmartin/compatible_release
Add support for compatible release ranges
Diffstat (limited to 'tests/test_match.py')
-rwxr-xr-xtests/test_match.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_match.py b/tests/test_match.py
index 49464f8..4d1a96f 100755
--- a/tests/test_match.py
+++ b/tests/test_match.py
@@ -31,6 +31,7 @@ class MatchTestCase(unittest.TestCase):
'!=0.1.2-rc1.3-14.15+build.2012-01-01.11h34',
'^0.1.2',
'~0.1.2',
+ '~=0.1.2',
]
matches = {
@@ -113,6 +114,16 @@ class MatchTestCase(unittest.TestCase):
'0.1.2+build4.5',
'0.1.3-rc1.3',
],
+ '~=1.4.5': (
+ '1.4.5',
+ '1.4.10-alpha',
+ '1.4.10',
+ ),
+ '~=1.4': [
+ '1.4.0',
+ '1.6.10-alpha',
+ '1.6.10',
+ ],
}
def test_invalid(self):