summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Hall <dave.hall@skwashd.com>2015-10-15 11:41:19 +1100
committerDave Hall <dave.hall@skwashd.com>2015-10-15 11:41:19 +1100
commit5ca781f439e8d402ada7f51c31d21ba211f673b6 (patch)
treec894120645b1d6d7caa32a1f3e975bbb66ce7cda /tests
parent2ed3d39c291080c61edd9139370939e1fdc3209a (diff)
downloadsemantic-version-5ca781f439e8d402ada7f51c31d21ba211f673b6.tar.gz
Add support for npm/composer caret and tilde condition extensions
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_match.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_match.py b/tests/test_match.py
index 6926e0a..73a2588 100755
--- a/tests/test_match.py
+++ b/tests/test_match.py
@@ -27,6 +27,8 @@ class MatchTestCase(unittest.TestCase):
'>=0.1.2-rc1.3.4',
'==0.1.2+build42-12.2012-01-01.12h23',
'!=0.1.2-rc1.3-14.15+build.2012-01-01.11h34',
+ '^0.1.2',
+ '~0.1.2',
]
matches = {
@@ -86,6 +88,17 @@ class MatchTestCase(unittest.TestCase):
'0.1.1-rc4',
'0.1.0+12.3',
],
+ '^0.1.2': [
+ '0.1.2',
+ '0.1.2+build4.5',
+ '0.1.3-rc1.3',
+ '0.2.0',
+ ],
+ '~0.1.2': [
+ '0.1.2',
+ '0.1.2+build4.5',
+ '0.1.3-rc1.3',
+ ],
}
def test_invalid(self):