diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-03-16 20:33:43 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-03-16 20:33:43 +0100 |
commit | 9e88ed992c989bd0e4bfd92a1dd1cbe176407d98 (patch) | |
tree | 4db869e3d2cc38511a5463139796b4426a27e45d /tests | |
parent | 5688677a89f6d8f0168290ca069e473c15b7617c (diff) | |
download | semantic-version-9e88ed992c989bd0e4bfd92a1dd1cbe176407d98.tar.gz |
Accept '*' as a Spec (Closes #8).
Spec('*') will match all valid Version objects.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_match.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_match.py b/tests/test_match.py index fe75179..155a612 100755 --- a/tests/test_match.py +++ b/tests/test_match.py @@ -18,6 +18,7 @@ class MatchTestCase(unittest.TestCase): ] valid_specs = [ + '*', '==0.1.0', '<=0.1.1', '<0.1', @@ -28,6 +29,17 @@ class MatchTestCase(unittest.TestCase): ] matches = { + '*': [ + '0.1.1', + '0.1.1+build4.5', + '0.1.2-rc1', + '0.1.2-rc1.3', + '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.2.0', + '1.0.0', + ], '==0.1.2': [ '0.1.2-rc1', '0.1.2-rc1.3.4', |