diff --git a/tests/test_version_scheme_semver.py b/tests/test_version_scheme_semver.py index 71d5e5876..d90ee3d65 100644 --- a/tests/test_version_scheme_semver.py +++ b/tests/test_version_scheme_semver.py @@ -64,6 +64,7 @@ (("1.0.0alpha1", None, "alpha", 0, None), "1.0.0-a2"), (("1", None, "rc", 0, None), "1.0.0-rc0"), (("1.0.0rc1+e20d7b57f3eb", "PATCH", None, 0, None), "1.0.0"), + (("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0"), ] # test driven development diff --git a/tests/test_version_scheme_semver2.py b/tests/test_version_scheme_semver2.py index d18a058a7..4ec42bc86 100644 --- a/tests/test_version_scheme_semver2.py +++ b/tests/test_version_scheme_semver2.py @@ -5,6 +5,8 @@ from commitizen.version_schemes import SemVer2, VersionProtocol +# current_version, increment, prerelease, prerelease_offset, devrelease + simple_flow = [ (("0.1.0", "PATCH", None, 0, None), "0.1.1"), (("0.1.0", "PATCH", None, 0, 1), "0.1.1-dev.1"), @@ -64,6 +66,7 @@ (("1.0.0-alpha.1", None, "alpha", 0, None), "1.0.0-alpha.2"), (("1", None, "rc", 0, None), "1.0.0-rc.0"), (("1.0.0-rc.1+e20d7b57f3eb", "PATCH", None, 0, None), "1.0.0"), + (("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0"), ] # test driven development