diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2020-04-29 11:46:24 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2020-04-29 11:46:24 +0200 |
commit | 0811fca1c435c1477ee1465578580b491cba6c73 (patch) | |
tree | d83ce16c1b5fa1d6a8ee76a0248a9d77f9aedbb8 /tests | |
parent | eda1ac8c22a99dbd01cd57fbcd459856b469ae46 (diff) | |
download | semantic-version-0811fca1c435c1477ee1465578580b491cba6c73.tar.gz |
Fix wildcard matching for SimpleSpec.
Including docs and tests.
Closes #98.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_base.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index c9770c9..d0a0e81 100755 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -644,6 +644,16 @@ class SpecTestCase(unittest.TestCase): ['0.1.1', '0.1.1+4'], ['0.1.1-alpha', '0.1.2-alpha', '0.1.2', '1.3.4'], ), + # 0.1.x + '==0.1.*': ( + ['0.1.1', '0.1.1+4', '0.1.0', '0.1.99'], + ['0.1.0-alpha', '0.0.1', '0.2.0'], + ), + # 1.x.x + '==1.*': ( + ['1.1.1', '1.1.0+4', '1.1.0', '1.99.99'], + ['1.0.0-alpha', '0.1.0', '2.0.0'], + ), # At least 0.1.0 with pre-releases, less than 0.1.4 excluding pre-releases, # neither 0.1.3-rc1 nor any build of that version, # not 0.1.0+b3 precisely |