From 0811fca1c435c1477ee1465578580b491cba6c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 29 Apr 2020 11:46:24 +0200 Subject: Fix wildcard matching for SimpleSpec. Including docs and tests. Closes #98. --- tests/test_base.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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 -- cgit v1.2.1