diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-12 00:48:18 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-12 00:48:18 +0100 |
commit | 15277fdb8ec28790232b4df614e65c8894ef0904 (patch) | |
tree | 45e6f1efd6e23df72639ba67f44128d05fc3e6ad /tests/test_match.py | |
parent | d6e5651c340b55606d1f6d346e36ad34935335b6 (diff) | |
parent | ec54ee92f1e9ad06d87fc864a08ceb66021c7df0 (diff) | |
download | semantic-version-15277fdb8ec28790232b4df614e65c8894ef0904.tar.gz |
Merge branch 'tilde-caret' of https://github.com/skwashd/python-semanticversion into skwashd-tilde-caret
Diffstat (limited to 'tests/test_match.py')
-rwxr-xr-x | tests/test_match.py | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/tests/test_match.py b/tests/test_match.py index c191168..9955b9f 100755 --- a/tests/test_match.py +++ b/tests/test_match.py @@ -14,19 +14,23 @@ class MatchTestCase(unittest.TestCase): '!0.1', '<=0.1.4a', '>0.1.1.1', - '~0.1.2-rc23,1', '<0.1.2-rc1.3-14.15+build.2012-01-01.11h34', ] valid_specs = [ '*', '==0.1.0', + '=0.1.0', + '0.1.0', '<=0.1.1', '<0.1', + '1', '>0.1.2-rc1', '>=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 = { @@ -47,6 +51,18 @@ class MatchTestCase(unittest.TestCase): '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-rc1', + '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-rc1', + '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.1', '0.1.2-rc1', @@ -86,6 +102,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): |