diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-12-21 15:51:24 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-12-21 16:02:12 +0100 |
commit | 2fb427d0d9d9c70d08a707c6fb5bcc2ae2c4023b (patch) | |
tree | 907ba3bd46e10f6be9deed1d1d2d48a853b16808 /tests | |
parent | 25db2464933444f7d332edba94bcee48fa8c0793 (diff) | |
download | semantic-version-2fb427d0d9d9c70d08a707c6fb5bcc2ae2c4023b.tar.gz |
Properly coerce versions with leading zeroes.
A leading zero is forbidden in the SemVer spec, but could be valid under
other schemes; when coercing, it can easily be removed.
Closes #89, thanks to Andrew Ni for the report.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index 2c0830f..c9770c9 100755 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -569,7 +569,7 @@ class CoerceTestCase(unittest.TestCase): examples = { # Dict of target: [list of equivalents] '0.0.0': ('0', '0.0', '0.0.0', '0.0.0+', '0-'), - '0.1.0': ('0.1', '0.1+', '0.1-', '0.1.0'), + '0.1.0': ('0.1', '0.1+', '0.1-', '0.1.0', '0.01.0', '000.0001.0000000000'), '0.1.0+2': ('0.1.0+2', '0.1.0.2'), '0.1.0+2.3.4': ('0.1.0+2.3.4', '0.1.0+2+3+4', '0.1.0.2+3+4'), '0.1.0+2-3.4': ('0.1.0+2-3.4', '0.1.0+2-3+4', '0.1.0.2-3+4', '0.1.0.2_3+4'), |