diff --git a/src/univers/version_range.py b/src/univers/version_range.py index e1863c32..0e0b1f43 100644 --- a/src/univers/version_range.py +++ b/src/univers/version_range.py @@ -233,6 +233,7 @@ class NpmVersionRange(VersionRange): ">=": ">=", "<": "<", ">": ">", + "=": "=", # This is not a native node-semver comparator, but is used in the gitlab version range for npm packages. } @classmethod @@ -974,6 +975,51 @@ def from_native(cls, string): return cls(constraints=constraints) +class GitLabVersionRange(VersionRange): + @classmethod + def from_gitlab_native(cls, scheme, string): + vrc = RANGE_CLASS_BY_SCHEMES[scheme] + constraint_items = [] + constraints = [] + split = " " + if scheme == "pypi": + split = "," + pipe_separated_constraints = string.split("||") + for pipe_separated_constraint in pipe_separated_constraints: + space_seperated_constraints = pipe_separated_constraint.split(split) + constraint_items.extend(space_seperated_constraints) + comparator = "" + # A constraint item can be a comparator or a version or a version with comparator + # If it's empty continue + # If it's in `vers_by_native_comparators`, append it with the comparator and continue + # If it's a version, make version constraint from the version and use the comparator from the previous item and make comparator empty + # If it's a version with comparator, use split_req to get version and comparator to form constraint and make comparator empty + for constraint_item in constraint_items: + if not constraint_item: + continue + if "".join([comparator, constraint_item]) in vrc.vers_by_native_comparators: + comparator = "".join([comparator, constraint_item]) + comparator = vrc.vers_by_native_comparators[comparator] + continue + if comparator: + constraints.append( + VersionConstraint( + comparator=comparator, version=vrc.version_class(constraint_item) + ) + ) + else: + comparator, version_constraint = split_req( + constraint_item, vrc.vers_by_native_comparators + ) + constraints.append( + VersionConstraint( + comparator=comparator, version=vrc.version_class(version_constraint) + ) + ) + comparator = "" + return vrc(constraints=constraints) + + vers_by_github_native_comparators = { "=": "=", "!=": "!=", diff --git a/tests/data/gem_gitlab.json b/tests/data/gem_gitlab.json new file mode 100644 index 00000000..7a8da243 --- /dev/null +++ b/tests/data/gem_gitlab.json @@ -0,0 +1,1904 @@ +[ + { + "test_index": 1, + "scheme": "gem", + "gitlab_native": "<3.4.1||>=4.3.0 <4.3.1", + "expected_vers": "vers:gem/<3.4.1|>=4.3.0|<4.3.1" + }, + { + "test_index": 2, + "scheme": "gem", + "gitlab_native": ">=4.0.0 <4.1.2", + "expected_vers": "vers:gem/>=4.0.0|<4.1.2" + }, + { + "test_index": 3, + "scheme": "gem", + "gitlab_native": "<3.4.0||>=4.0.0 <4.1.2", + "expected_vers": "vers:gem/<3.4.0|>=4.0.0|<4.1.2" + }, + { + "test_index": 4, + "scheme": "gem", + "gitlab_native": "<3.4.0||>=4.0.0 <4.1.2", + "expected_vers": "vers:gem/<3.4.0|>=4.0.0|<4.1.2" + }, + { + "test_index": 5, + "scheme": "gem", + "gitlab_native": ">=1.0.0-alpha0 <1.1.1", + "expected_vers": "vers:gem/>=1.0.0-alpha0|<1.1.1" + }, + { + "test_index": 6, + "scheme": "gem", + "gitlab_native": "<1.4.3||>=2.0.0 <2.0.2", + "expected_vers": "vers:gem/<1.4.3|>=2.0.0|<2.0.2" + }, + { + "test_index": 7, + "scheme": "gem", + "gitlab_native": "<=3.6.2||>=3.7.0 <=3.7.3||>=3.8.0 <=3.8.3", + "expected_vers": "vers:gem/<=3.6.2|>=3.7.0|<=3.7.3|>=3.8.0|<=3.8.3" + }, + { + "test_index": 8, + "scheme": "gem", + "gitlab_native": ">=1.10.0a <1.10.1||>=1.11.0a <1.11.2||>=1.12.0a <1.12.0", + "expected_vers": "vers:gem/>=1.10.0a|<1.10.1|>=1.11.0a|<1.11.2|>=1.12.0a|<1.12.0" + }, + { + "test_index": 9, + "scheme": "gem", + "gitlab_native": "<1.0.1||>=1.1.0.alpha0 <1.1.2||>=1.2.0.alpha0 <1.2.1.1||>=1.3.0.alpha0 <1.3.1", + "expected_vers": "vers:gem/<1.0.1|>=1.1.0.alpha0|<1.1.2|>=1.2.0.alpha0|<1.2.1.1|>=1.3.0.alpha0|<1.3.1" + }, + { + "test_index": 10, + "scheme": "gem", + "gitlab_native": "<1.0.1||>=1.1.0 <1.1.2", + "expected_vers": "vers:gem/<1.0.1|>=1.1.0|<1.1.2" + }, + { + "test_index": 11, + "scheme": "gem", + "gitlab_native": ">=1.2.0.alpha0 <1.2.2||>=1.3.0.alpha0 <1.3.2", + "expected_vers": "vers:gem/>=1.2.0.alpha0|<1.2.2|>=1.3.0.alpha0|<1.3.2" + }, + { + "test_index": 12, + "scheme": "gem", + "gitlab_native": ">=1.11.0a <1.11.4||>=1.12.0a <1.12.2||>=1.13.0a <1.13.12||>=2.0.0a <2.0.3||>=2.1.0a <2.1.2||>=2.2.0a <2.2.1", + "expected_vers": "vers:gem/>=1.11.0a|<1.11.4|>=1.12.0a|<1.12.2|>=1.13.0a|<1.13.12|>=2.0.0a|<2.0.3|>=2.1.0a|<2.1.2|>=2.2.0a|<2.2.1" + }, + { + "test_index": 13, + "scheme": "gem", + "gitlab_native": ">=1.0.13 <=1.0.14||=0.1.4", + "expected_vers": "vers:gem/0.1.4|>=1.0.13|<=1.0.14" + }, + { + "test_index": 14, + "scheme": "gem", + "gitlab_native": ">=0.7.0 <0.9.13", + "expected_vers": "vers:gem/>=0.7.0|<0.9.13" + }, + { + "test_index": 15, + "scheme": "gem", + "gitlab_native": ">=0.3.0 <0.3.1||>=0.2.0 <0.2.1||<0.1.1", + "expected_vers": "vers:gem/<0.1.1|>=0.2.0|<0.2.1|>=0.3.0|<0.3.1" + }, + { + "test_index": 16, + "scheme": "gem", + "gitlab_native": "<=0.1.0||>0.2.0 <0.3.1", + "expected_vers": "vers:gem/<=0.1.0|>0.2.0|<0.3.1" + }, + { + "test_index": 17, + "scheme": "gem", + "gitlab_native": ">=0.1.0 <=0.3.0", + "expected_vers": "vers:gem/>=0.1.0|<=0.3.0" + }, + { + "test_index": 18, + "scheme": "gem", + "gitlab_native": ">=1.2.6 <1.2.8", + "expected_vers": "vers:gem/>=1.2.6|<1.2.8" + }, + { + "test_index": 19, + "scheme": "gem", + "gitlab_native": ">=1.0.0 <1.1.4", + "expected_vers": "vers:gem/>=1.0.0|<1.1.4" + }, + { + "test_index": 20, + "scheme": "gem", + "gitlab_native": "<1.12.3||>2.0.0a <3.0.4", + "expected_vers": "vers:gem/<1.12.3|>2.0.0a|<3.0.4" + }, + { + "test_index": 21, + "scheme": "gem", + "gitlab_native": ">=1.16.0 <2.2.16", + "expected_vers": "vers:gem/>=1.16.0|<2.2.16" + }, + { + "test_index": 22, + "scheme": "gem", + "gitlab_native": ">=5.0.0 <5.0.3||>=5.1.0 <5.1.1||>=5.2.0 <5.2.5||>=5.3.0 <5.3.2", + "expected_vers": "vers:gem/>=5.0.0|<5.0.3|>=5.1.0|<5.1.1|>=5.2.0|<5.2.5|>=5.3.0|<5.3.2" + }, + { + "test_index": 23, + "scheme": "gem", + "gitlab_native": ">=2.1.0 <4.2.6", + "expected_vers": "vers:gem/>=2.1.0|<4.2.6" + }, + { + "test_index": 24, + "scheme": "gem", + "gitlab_native": "<1.4.1||>2.0.0a <2.0.0rc3", + "expected_vers": "vers:gem/<1.4.1|>2.0.0a|<2.0.0rc3" + }, + { + "test_index": 25, + "scheme": "gem", + "gitlab_native": ">2.0.0a <2.1.2||<1.4.2", + "expected_vers": "vers:gem/<1.4.2|>2.0.0a|<2.1.2" + }, + { + "test_index": 26, + "scheme": "gem", + "gitlab_native": ">=1.19 <1.22", + "expected_vers": "vers:gem/>=1.19|<1.22" + }, + { + "test_index": 27, + "scheme": "gem", + "gitlab_native": ">=1.0.0 <2.5.4", + "expected_vers": "vers:gem/>=1.0.0|<2.5.4" + }, + { + "test_index": 28, + "scheme": "gem", + "gitlab_native": ">=0.14.0 <=0.14.1", + "expected_vers": "vers:gem/>=0.14.0|<=0.14.1" + }, + { + "test_index": 29, + "scheme": "gem", + "gitlab_native": ">=0.12.0 <=0.14.1", + "expected_vers": "vers:gem/>=0.12.0|<=0.14.1" + }, + { + "test_index": 30, + "scheme": "gem", + "gitlab_native": ">=2.3.0 <2.4.1", + "expected_vers": "vers:gem/>=2.3.0|<2.4.1" + }, + { + "test_index": 31, + "scheme": "gem", + "gitlab_native": "<=5.1.3||>=6.0.0 <=6.2.0", + "expected_vers": "vers:gem/<=5.1.3|>=6.0.0|<=6.2.0" + }, + { + "test_index": 32, + "scheme": "gem", + "gitlab_native": "<5.2.10||>=6.0.0 <6.4.0", + "expected_vers": "vers:gem/<5.2.10|>=6.0.0|<6.4.0" + }, + { + "test_index": 33, + "scheme": "gem", + "gitlab_native": "<1.3.2||>=2.0.1 <2.1.1", + "expected_vers": "vers:gem/<1.3.2|>=2.0.1|<2.1.1" + }, + { + "test_index": 34, + "scheme": "gem", + "gitlab_native": "<1.3.2||>=2.0.1 <2.1.1", + "expected_vers": "vers:gem/<1.3.2|>=2.0.1|<2.1.1" + }, + { + "test_index": 35, + "scheme": "gem", + "gitlab_native": ">=3.0.0a <3.0.0.beta.3||>=2.12.0a <2.12.3||>=2.11.0a <2.11.3||>=2.10.0a <2.10.2||>=2.9.0a <2.9.4||>=2.8.0a <2.8.3||>=2.7.0a <2.7.1||>=2.5.0a <2.5.1||>=2.4.0a <2.4.6||>=2.3.0a <2.3.3||>=2.2.0a <2.2.3||>=2.1.0a <2.1.4||>=2.0.0 <2.0.5", + "expected_vers": "vers:gem/>=2.0.0|<2.0.5|>=2.1.0a|<2.1.4|>=2.2.0a|<2.2.3|>=2.3.0a|<2.3.3|>=2.4.0a|<2.4.6|>=2.5.0a|<2.5.1|>=2.7.0a|<2.7.1|>=2.8.0a|<2.8.3|>=2.9.0a|<2.9.4|>=2.10.0a|<2.10.2|>=2.11.0a|<2.11.3|>=2.12.0a|<2.12.3|>=3.0.0a|<3.0.0.beta.3" + }, + { + "test_index": 36, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <=2.12.4||>=3.0.0 <=4.0.0.beta7", + "expected_vers": "vers:gem/>=2.0.0|<=2.12.4|>=3.0.0|<=4.0.0.beta7" + }, + { + "test_index": 37, + "scheme": "gem", + "gitlab_native": "<2.8.6||>=2.9.0 <2.9.6||>=2.10.0 <2.10.2", + "expected_vers": "vers:gem/<2.8.6|>=2.9.0|<2.9.6|>=2.10.0|<2.10.2" + }, + { + "test_index": 38, + "scheme": "gem", + "gitlab_native": "<2.11.14||>=3.0.0 <3.0.5||>=3.1.0 <3.1.5", + "expected_vers": "vers:gem/<2.11.14|>=3.0.0|<3.0.5|>=3.1.0|<3.1.5" + }, + { + "test_index": 39, + "scheme": "gem", + "gitlab_native": ">=0.12.29 <=0.12.40", + "expected_vers": "vers:gem/>=0.12.29|<=0.12.40" + }, + { + "test_index": 40, + "scheme": "gem", + "gitlab_native": ">=0.14.14 <=1.14.1", + "expected_vers": "vers:gem/>=0.14.14|<=1.14.1" + }, + { + "test_index": 41, + "scheme": "gem", + "gitlab_native": ">=5.0.0.alpha <5.0.0.beta1.1||>=4.2.0.alpha <4.2.5.1||>=4.1.0.alpha <4.1.14.1", + "expected_vers": "vers:gem/>=4.1.0.alpha|<4.1.14.1|>=4.2.0.alpha|<4.2.5.1|>=5.0.0.alpha|<5.0.0.beta1.1" + }, + { + "test_index": 42, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.1.11 || >=3.2.0 <3.2.12", + "expected_vers": "vers:gem/>=3.0.0|<3.1.11|>=3.2.0|<3.2.12" + }, + { + "test_index": 43, + "scheme": "gem", + "gitlab_native": ">0.5.0 <1.0.4||>=1.1.0 <1.1.3||>=1.2.0 <1.2.5", + "expected_vers": "vers:gem/>0.5.0|<1.0.4|>=1.1.0|<1.1.3|>=1.2.0|<1.2.5" + }, + { + "test_index": 44, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <5.2.1", + "expected_vers": "vers:gem/>=3.0.0|<5.2.1" + }, + { + "test_index": 45, + "scheme": "gem", + "gitlab_native": ">=1.1.0 <4.6.3", + "expected_vers": "vers:gem/>=1.1.0|<4.6.3" + }, + { + "test_index": 46, + "scheme": "gem", + "gitlab_native": "<2.2.10||>=2.3.0a <2.3.8||>=3.0.0a <3.0.0.rc4||>=2.4.0a <2.4.5", + "expected_vers": "vers:gem/<2.2.10|>=2.3.0a|<2.3.8|>=2.4.0a|<2.4.5|>=3.0.0a|<3.0.0.rc4" + }, + { + "test_index": 47, + "scheme": "gem", + "gitlab_native": ">=1.0.0.rc1 <=1.3.2", + "expected_vers": "vers:gem/>=1.0.0.rc1|<=1.3.2" + }, + { + "test_index": 48, + "scheme": "gem", + "gitlab_native": "<3.7.11||>=4.0.0 <4.0.4||>=4.1.0 <4.1.11", + "expected_vers": "vers:gem/<3.7.11|>=4.0.0|<4.0.4|>=4.1.0|<4.1.11" + }, + { + "test_index": 49, + "scheme": "gem", + "gitlab_native": ">=0.11.0 <=0.11.1||=0.30.0", + "expected_vers": "vers:gem/>=0.11.0|<=0.11.1|0.30.0" + }, + { + "test_index": 50, + "scheme": "gem", + "gitlab_native": ">=3.7.0 <3.7.13||>=4.0.0 <4.0.5||>=4.1.0 <4.1.12", + "expected_vers": "vers:gem/>=3.7.0|<3.7.13|>=4.0.0|<4.0.5|>=4.1.0|<4.1.12" + }, + { + "test_index": 51, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 52, + "scheme": "gem", + "gitlab_native": ">=2.6.0 <=3.0.2", + "expected_vers": "vers:gem/>=2.6.0|<=3.0.2" + }, + { + "test_index": 53, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 54, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 55, + "scheme": "gem", + "gitlab_native": ">=2.6.0 <=3.0.2", + "expected_vers": "vers:gem/>=2.6.0|<=3.0.2" + }, + { + "test_index": 56, + "scheme": "gem", + "gitlab_native": ">=2.6.0 <=3.0.2", + "expected_vers": "vers:gem/>=2.6.0|<=3.0.2" + }, + { + "test_index": 57, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <=2.6.13", + "expected_vers": "vers:gem/>=2.0.0|<=2.6.13" + }, + { + "test_index": 58, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 59, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 60, + "scheme": "gem", + "gitlab_native": ">=2.6.0 <=3.0.2", + "expected_vers": "vers:gem/>=2.6.0|<=3.0.2" + }, + { + "test_index": 61, + "scheme": "gem", + "gitlab_native": ">=0.8.11 <=0.9.0", + "expected_vers": "vers:gem/>=0.8.11|<=0.9.0" + }, + { + "test_index": 62, + "scheme": "gem", + "gitlab_native": ">=2.6.0 <=3.0.2", + "expected_vers": "vers:gem/>=2.6.0|<=3.0.2" + }, + { + "test_index": 63, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 64, + "scheme": "gem", + "gitlab_native": ">=2.7.6 <=3.0.2", + "expected_vers": "vers:gem/>=2.7.6|<=3.0.2" + }, + { + "test_index": 65, + "scheme": "gem", + "gitlab_native": ">2.2.9 <=2.5.0", + "expected_vers": "vers:gem/>2.2.9|<=2.5.0" + }, + { + "test_index": 66, + "scheme": "gem", + "gitlab_native": "<1.5.3||>2.0.0 <2.0.5", + "expected_vers": "vers:gem/<1.5.3|>2.0.0|<2.0.5" + }, + { + "test_index": 67, + "scheme": "gem", + "gitlab_native": "<1.5.5 || >=1.6.0 <1.6.8 || >=1.7.0 <1.7.7", + "expected_vers": "vers:gem/<1.5.5|>=1.6.0|<1.6.8|>=1.7.0|<1.7.7" + }, + { + "test_index": 68, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <=2.0.1", + "expected_vers": "vers:gem/>=2.0.0|<=2.0.1" + }, + { + "test_index": 69, + "scheme": "gem", + "gitlab_native": ">=7.0.0 <7.12.1||<6.25.1", + "expected_vers": "vers:gem/<6.25.1|>=7.0.0|<7.12.1" + }, + { + "test_index": 70, + "scheme": "gem", + "gitlab_native": ">=3.1.0 <3.1.1||>=2.7.0 <2.7.21", + "expected_vers": "vers:gem/>=2.7.0|<2.7.21|>=3.1.0|<3.1.1" + }, + { + "test_index": 71, + "scheme": "gem", + "gitlab_native": "<2.7.26||>=3.0.0 <3.6.2", + "expected_vers": "vers:gem/<2.7.26|>=3.0.0|<3.6.2" + }, + { + "test_index": 72, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.13.0", + "expected_vers": "vers:gem/>=6.0.0|<6.13.0" + }, + { + "test_index": 73, + "scheme": "gem", + "gitlab_native": ">=2.7.0 <2.7.23||>3.2.0 <3.2.4", + "expected_vers": "vers:gem/>=2.7.0|<2.7.23|>3.2.0|<3.2.4" + }, + { + "test_index": 74, + "scheme": "gem", + "gitlab_native": "<2.6.17||>=2.7.0 <2.7.18", + "expected_vers": "vers:gem/<2.6.17|>=2.7.0|<2.7.18" + }, + { + "test_index": 75, + "scheme": "gem", + "gitlab_native": ">=7.0.0 <7.12.1||<6.25.1", + "expected_vers": "vers:gem/<6.25.1|>=7.0.0|<7.12.1" + }, + { + "test_index": 76, + "scheme": "gem", + "gitlab_native": ">=2.7.0 <2.7.18", + "expected_vers": "vers:gem/>=2.7.0|<2.7.18" + }, + { + "test_index": 77, + "scheme": "gem", + "gitlab_native": ">=2.7.1 <2.7.13", + "expected_vers": "vers:gem/>=2.7.1|<2.7.13" + }, + { + "test_index": 78, + "scheme": "gem", + "gitlab_native": "<2.6.17||>=2.7.0 <2.7.18", + "expected_vers": "vers:gem/<2.6.17|>=2.7.0|<2.7.18" + }, + { + "test_index": 79, + "scheme": "gem", + "gitlab_native": ">=2.7.0 <2.7.22||>=3.2.0 <3.2.2", + "expected_vers": "vers:gem/>=2.7.0|<2.7.22|>=3.2.0|<3.2.2" + }, + { + "test_index": 80, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.2.5 || >=3.0.0 <3.0.1", + "expected_vers": "vers:gem/>=2.0.0|<2.2.5|>=3.0.0|<3.0.1" + }, + { + "test_index": 81, + "scheme": "gem", + "gitlab_native": ">=1.4.0 <1.5.4 || >=1.6 <2.0.5 || >=2.1.0 <2.1.3 || >=2.2.0 <2.2.3", + "expected_vers": "vers:gem/>=1.4.0|<1.5.4|>=1.6|<2.0.5|>=2.1.0|<2.1.3|>=2.2.0|<2.2.3" + }, + { + "test_index": 82, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.2.15", + "expected_vers": "vers:gem/>=3.0.0|<3.2.15" + }, + { + "test_index": 83, + "scheme": "gem", + "gitlab_native": ">=1.4.0 <1.5.4", + "expected_vers": "vers:gem/>=1.4.0|<1.5.4" + }, + { + "test_index": 84, + "scheme": "gem", + "gitlab_native": ">=2.3.0 <2.8.0", + "expected_vers": "vers:gem/>=2.3.0|<2.8.0" + }, + { + "test_index": 85, + "scheme": "gem", + "gitlab_native": ">=0.0.1 <=2.6.0", + "expected_vers": "vers:gem/>=0.0.1|<=2.6.0" + }, + { + "test_index": 86, + "scheme": "gem", + "gitlab_native": ">=0.1.7 <=2.6.0", + "expected_vers": "vers:gem/>=0.1.7|<=2.6.0" + }, + { + "test_index": 87, + "scheme": "gem", + "gitlab_native": ">=2.0.1 <=2.6.0", + "expected_vers": "vers:gem/>=2.0.1|<=2.6.0" + }, + { + "test_index": 88, + "scheme": "gem", + "gitlab_native": ">=2.1.2.0 <=2.6.0", + "expected_vers": "vers:gem/>=2.1.2.0|<=2.6.0" + }, + { + "test_index": 89, + "scheme": "gem", + "gitlab_native": ">=0.119.0 <=0.125.1", + "expected_vers": "vers:gem/>=0.119.0|<=0.125.1" + }, + { + "test_index": 90, + "scheme": "gem", + "gitlab_native": "<3.0.17 || >=3.1.0 <3.1.8 || >=3.2.0 <3.2.8", + "expected_vers": "vers:gem/<3.0.17|>=3.1.0|<3.1.8|>=3.2.0|<3.2.8" + }, + { + "test_index": 91, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.1.12 || >=3.2.0 <3.2.13", + "expected_vers": "vers:gem/>=3.0.0|<3.1.12|>=3.2.0|<3.2.13" + }, + { + "test_index": 92, + "scheme": "gem", + "gitlab_native": "<2.3.16 || >=2.4.0 <3.0.20", + "expected_vers": "vers:gem/<2.3.16|>=2.4.0|<3.0.20" + }, + { + "test_index": 93, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 94, + "scheme": "gem", + "gitlab_native": ">=4.1.0a <4.1.11||>=4.2.0a <4.2.2", + "expected_vers": "vers:gem/>=4.1.0a|<4.1.11|>=4.2.0a|<4.2.2" + }, + { + "test_index": 95, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.12||>=3.1.0 <3.1.4||>=3.2.0 <3.2.2", + "expected_vers": "vers:gem/>=3.0.0|<3.0.12|>=3.1.0|<3.1.4|>=3.2.0|<3.2.2" + }, + { + "test_index": 96, + "scheme": "gem", + "gitlab_native": "<3.2.22||>=4.0.0a <4.1.11||>=4.2.0a <4.2.2", + "expected_vers": "vers:gem/<3.2.22|>=4.0.0a|<4.1.11|>=4.2.0a|<4.2.2" + }, + { + "test_index": 97, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.3.13||>=3.0.0 <3.0.10", + "expected_vers": "vers:gem/>=2.0.0|<2.3.13|>=3.0.0|<3.0.10" + }, + { + "test_index": 98, + "scheme": "gem", + "gitlab_native": ">=5.0.10 <5.1.11", + "expected_vers": "vers:gem/>=5.0.10|<5.1.11" + }, + { + "test_index": 99, + "scheme": "gem", + "gitlab_native": ">=4.0.5 <4.0.33", + "expected_vers": "vers:gem/>=4.0.5|<4.0.33" + }, + { + "test_index": 100, + "scheme": "gem", + "gitlab_native": ">=5.3.0 <5.3.2", + "expected_vers": "vers:gem/>=5.3.0|<5.3.2" + }, + { + "test_index": 101, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.21 || >=4.0.0 <4.0.5", + "expected_vers": "vers:gem/>=3.0.0|<3.0.21|>=4.0.0|<4.0.5" + }, + { + "test_index": 102, + "scheme": "gem", + "gitlab_native": ">=5.3.0 <5.3.2", + "expected_vers": "vers:gem/>=5.3.0|<5.3.2" + }, + { + "test_index": 103, + "scheme": "gem", + "gitlab_native": "=4.0.0||=1.0", + "expected_vers": "vers:gem/1.0|4.0.0" + }, + { + "test_index": 104, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <5.3.2", + "expected_vers": "vers:gem/>=3.0.0|<5.3.2" + }, + { + "test_index": 105, + "scheme": "gem", + "gitlab_native": ">=5.3.0 <5.3.2", + "expected_vers": "vers:gem/>=5.3.0|<5.3.2" + }, + { + "test_index": 106, + "scheme": "gem", + "gitlab_native": ">=4.0.0a <4.0.60||>=5.0.0a <5.0.22", + "expected_vers": "vers:gem/>=4.0.0a|<4.0.60|>=5.0.0a|<5.0.22" + }, + { + "test_index": 107, + "scheme": "gem", + "gitlab_native": ">=2.0.2 <=3.1.1", + "expected_vers": "vers:gem/>=2.0.2|<=3.1.1" + }, + { + "test_index": 108, + "scheme": "gem", + "gitlab_native": ">=0.2.0 <0.2.2||>=0.4.0 <0.4.2", + "expected_vers": "vers:gem/>=0.2.0|<0.2.2|>=0.4.0|<0.4.2" + }, + { + "test_index": 109, + "scheme": "gem", + "gitlab_native": ">=0.4.0 <=0.5.2", + "expected_vers": "vers:gem/>=0.4.0|<=0.5.2" + }, + { + "test_index": 110, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.0.13||>=2.1.0 <2.1.11||>=2.2.0 <2.2.5||>=2.3.0 <2.3.10||>=2.4.0 <2.4.11||>=2.5.0 <2.5.3||>=2.6.0 <2.6.3||>=2.7.0 <2.7.8||>=2.8.0 <2.8.2||>=2.9.0 <2.9.2||>=2.10.0 <2.10.4||>=2.11.0 <2.11.2", + "expected_vers": "vers:gem/>=2.0.0|<2.0.13|>=2.1.0|<2.1.11|>=2.2.0|<2.2.5|>=2.3.0|<2.3.10|>=2.4.0|<2.4.11|>=2.5.0|<2.5.3|>=2.6.0|<2.6.3|>=2.7.0|<2.7.8|>=2.8.0|<2.8.2|>=2.9.0|<2.9.2|>=2.10.0|<2.10.4|>=2.11.0|<2.11.2" + }, + { + "test_index": 111, + "scheme": "gem", + "gitlab_native": "<2.5.5.rc1||>=2.6.0.alpha0 <2.6.6.rc1||>=2.7.0.alpha0 <2.7.0.rc1", + "expected_vers": "vers:gem/<2.5.5.rc1|>=2.6.0.alpha0|<2.6.6.rc1|>=2.7.0.alpha0|<2.7.0.rc1" + }, + { + "test_index": 112, + "scheme": "gem", + "gitlab_native": ">=2.3.2 <=2.4.3", + "expected_vers": "vers:gem/>=2.3.2|<=2.4.3" + }, + { + "test_index": 113, + "scheme": "gem", + "gitlab_native": ">=2.3.2 <=2.4.1", + "expected_vers": "vers:gem/>=2.3.2|<=2.4.1" + }, + { + "test_index": 114, + "scheme": "gem", + "gitlab_native": ">=2.0.0.rc3 <2.0.2", + "expected_vers": "vers:gem/>=2.0.0.rc3|<2.0.2" + }, + { + "test_index": 115, + "scheme": "gem", + "gitlab_native": "<2.0.1||>=3.0.0 <3.0.2||>=3.1.0 <3.1.2||=3.2.0", + "expected_vers": "vers:gem/<2.0.1|>=3.0.0|<3.0.2|>=3.1.0|<3.1.2|3.2.0" + }, + { + "test_index": 116, + "scheme": "gem", + "gitlab_native": ">=0.119.0 <=0.125.1", + "expected_vers": "vers:gem/>=0.119.0|<=0.125.1" + }, + { + "test_index": 117, + "scheme": "gem", + "gitlab_native": ">=0.5.0 <1.9.4", + "expected_vers": "vers:gem/>=0.5.0|<1.9.4" + }, + { + "test_index": 118, + "scheme": "gem", + "gitlab_native": "<1.0.3 || >=1.1.0 <1.1.4 || >=1.2.0 <2.0.2", + "expected_vers": "vers:gem/<1.0.3|>=1.1.0|<1.1.4|>=1.2.0|<2.0.2" + }, + { + "test_index": 119, + "scheme": "gem", + "gitlab_native": ">=0.1.33 <=1.1.2", + "expected_vers": "vers:gem/>=0.1.33|<=1.1.2" + }, + { + "test_index": 120, + "scheme": "gem", + "gitlab_native": ">=0.5.0 <0.5.4", + "expected_vers": "vers:gem/>=0.5.0|<0.5.4" + }, + { + "test_index": 121, + "scheme": "gem", + "gitlab_native": "<2.8.6||>=2.9.0 <2.9.6||>=2.10.0 <2.10.2", + "expected_vers": "vers:gem/<2.8.6|>=2.9.0|<2.9.6|>=2.10.0|<2.10.2" + }, + { + "test_index": 122, + "scheme": "gem", + "gitlab_native": "<2.11.14||>=3.0.0 <3.0.5||>=3.1.0 <3.1.5", + "expected_vers": "vers:gem/<2.11.14|>=3.0.0|<3.0.5|>=3.1.0|<3.1.5" + }, + { + "test_index": 123, + "scheme": "gem", + "gitlab_native": ">=2.31.0 <2.31.2||>=2.32.0 <2.49.1", + "expected_vers": "vers:gem/>=2.31.0|<2.31.2|>=2.32.0|<2.49.1" + }, + { + "test_index": 124, + "scheme": "gem", + "gitlab_native": "<3.9.0||>=5.0.0 <5.2.0||>=6.0.0 <6.3.0", + "expected_vers": "vers:gem/<3.9.0|>=5.0.0|<5.2.0|>=6.0.0|<6.3.0" + }, + { + "test_index": 125, + "scheme": "gem", + "gitlab_native": "<3.8.0||>=5.0.0 <5.1.0||>=6.0.0 <6.2.0", + "expected_vers": "vers:gem/<3.8.0|>=5.0.0|<5.1.0|>=6.0.0|<6.2.0" + }, + { + "test_index": 126, + "scheme": "gem", + "gitlab_native": "<1.5.5||>=2.0.0.beta1 <2.0.0", + "expected_vers": "vers:gem/<1.5.5|>=2.0.0.beta1|<2.0.0" + }, + { + "test_index": 127, + "scheme": "gem", + "gitlab_native": ">=0.2.0 <=0.3.2", + "expected_vers": "vers:gem/>=0.2.0|<=0.3.2" + }, + { + "test_index": 128, + "scheme": "gem", + "gitlab_native": ">0.11.0 <0.13.3", + "expected_vers": "vers:gem/>0.11.0|<0.13.3" + }, + { + "test_index": 129, + "scheme": "gem", + "gitlab_native": ">=0.0.0 <0.12.1", + "expected_vers": "vers:gem/>=0.0.0|<0.12.1" + }, + { + "test_index": 130, + "scheme": "gem", + "gitlab_native": ">=0.0.0 <0.12.1", + "expected_vers": "vers:gem/>=0.0.0|<0.12.1" + }, + { + "test_index": 131, + "scheme": "gem", + "gitlab_native": ">=0.0.0 <0.12.1", + "expected_vers": "vers:gem/>=0.0.0|<0.12.1" + }, + { + "test_index": 132, + "scheme": "gem", + "gitlab_native": "<=0.14.1||>=0.15.0 <=0.15.1||>=0.16.0 <=0.16.3||>=0.17.0 <=0.17.2||=0.18.0", + "expected_vers": "vers:gem/<=0.14.1|>=0.15.0|<=0.15.1|>=0.16.0|<=0.16.3|>=0.17.0|<=0.17.2|0.18.0" + }, + { + "test_index": 133, + "scheme": "gem", + "gitlab_native": ">=0.0.0 <0.12.1", + "expected_vers": "vers:gem/>=0.0.0|<0.12.1" + }, + { + "test_index": 134, + "scheme": "gem", + "gitlab_native": ">=3.7.0 <3.7.13||>=4.0.0 <4.0.5||>=4.1.0 <4.1.12", + "expected_vers": "vers:gem/>=3.7.0|<3.7.13|>=4.0.0|<4.0.5|>=4.1.0|<4.1.12" + }, + { + "test_index": 135, + "scheme": "gem", + "gitlab_native": ">=9.0.0.pre1 <9.2.5", + "expected_vers": "vers:gem/>=9.0.0.pre1|<9.2.5" + }, + { + "test_index": 136, + "scheme": "gem", + "gitlab_native": ">=8.0 <=9.2.4", + "expected_vers": "vers:gem/>=8.0|<=9.2.4" + }, + { + "test_index": 137, + "scheme": "gem", + "gitlab_native": ">=8.0 <=9.2.4", + "expected_vers": "vers:gem/>=8.0|<=9.2.4" + }, + { + "test_index": 138, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.4", + "expected_vers": "vers:gem/>=3.0.0|<3.0.4" + }, + { + "test_index": 139, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.3.13||>=3.0.0 <3.0.10", + "expected_vers": "vers:gem/>=2.0.0|<2.3.13|>=3.0.0|<3.0.10" + }, + { + "test_index": 140, + "scheme": "gem", + "gitlab_native": ">=3.0.0.alpha <3.2.22.3", + "expected_vers": "vers:gem/>=3.0.0.alpha|<3.2.22.3" + }, + { + "test_index": 141, + "scheme": "gem", + "gitlab_native": ">=3.2.0a <3.2.20||>=4.0.0a <4.0.11||>=4.1.0a <4.1.7||>=4.2.0.a <4.2.0.beta3", + "expected_vers": "vers:gem/>=3.2.0a|<3.2.20|>=4.0.0a|<4.0.11|>=4.1.0a|<4.1.7|>=4.2.0.a|<4.2.0.beta3" + }, + { + "test_index": 142, + "scheme": "gem", + "gitlab_native": ">=4.0.0 <4.0.2", + "expected_vers": "vers:gem/>=4.0.0|<4.0.2" + }, + { + "test_index": 143, + "scheme": "gem", + "gitlab_native": "<2.3.18 || >=2.4.0 <3.1.12 || >=3.2.0 <3.2.13", + "expected_vers": "vers:gem/<2.3.18|>=2.4.0|<3.1.12|>=3.2.0|<3.2.13" + }, + { + "test_index": 144, + "scheme": "gem", + "gitlab_native": "<3.2.17||>=4.0 <4.0.3||>=4.1.0 <4.1.1", + "expected_vers": "vers:gem/<3.2.17|>=4.0|<4.0.3|>=4.1.0|<4.1.1" + }, + { + "test_index": 145, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <=6.0.4||>=6.1.0 <=6.1.4", + "expected_vers": "vers:gem/>=6.0.0|<=6.0.4|>=6.1.0|<=6.1.4" + }, + { + "test_index": 146, + "scheme": "gem", + "gitlab_native": ">=3.2.0.0.alpha <3.2.22.2||>=4.0.0.0.alpha <4.1.14.2||>=4.2.0.0.alpha <4.2.5.2", + "expected_vers": "vers:gem/>=3.2.0.0.alpha|<3.2.22.2|>=4.0.0.0.alpha|<4.1.14.2|>=4.2.0.0.alpha|<4.2.5.2" + }, + { + "test_index": 147, + "scheme": "gem", + "gitlab_native": "<2.3.15 || >=2.4.0 <3.0.19 || >=3.1.0 <3.1.10 || >=3.2.0 <3.2.11", + "expected_vers": "vers:gem/<2.3.15|>=2.4.0|<3.0.19|>=3.1.0|<3.1.10|>=3.2.0|<3.2.11" + }, + { + "test_index": 148, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.4", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.4" + }, + { + "test_index": 149, + "scheme": "gem", + "gitlab_native": ">=4.2.0.alpha <4.2.5.1||>=4.0.0.alpha <4.1.14.1", + "expected_vers": "vers:gem/>=4.0.0.alpha|<4.1.14.1|>=4.2.0.alpha|<4.2.5.1" + }, + { + "test_index": 150, + "scheme": "gem", + "gitlab_native": "<3.2.16||>=4.0 <4.0.2", + "expected_vers": "vers:gem/<3.2.16|>=4.0|<4.0.2" + }, + { + "test_index": 151, + "scheme": "gem", + "gitlab_native": ">=2.3.0.alpha0 <2.3.13", + "expected_vers": "vers:gem/>=2.3.0.alpha0|<2.3.13" + }, + { + "test_index": 152, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.16 || >=3.1.0 <3.1.7 || >=3.2.0 <3.2.7", + "expected_vers": "vers:gem/>=3.0.0|<3.0.16|>=3.1.0|<3.1.7|>=3.2.0|<3.2.7" + }, + { + "test_index": 153, + "scheme": "gem", + "gitlab_native": "<3.0.17 || >=3.1.0 <3.1.8 || >=3.2.0 <3.2.8", + "expected_vers": "vers:gem/<3.0.17|>=3.1.0|<3.1.8|>=3.2.0|<3.2.8" + }, + { + "test_index": 154, + "scheme": "gem", + "gitlab_native": ">=5.0.0.alpha <5.0.0.beta1.1||>=4.2.0.alpha <4.2.5.1||>=4.0.0.alpha <4.1.14.1||<3.2.22.1", + "expected_vers": "vers:gem/<3.2.22.1|>=4.0.0.alpha|<4.1.14.1|>=4.2.0.alpha|<4.2.5.1|>=5.0.0.alpha|<5.0.0.beta1.1" + }, + { + "test_index": 155, + "scheme": "gem", + "gitlab_native": ">=3.0.0.alpha0 <3.0.12||>=3.1.0.alpha0 <3.1.4||>=3.2.0.alpha0 <3.2.2", + "expected_vers": "vers:gem/>=3.0.0.alpha0|<3.0.12|>=3.1.0.alpha0|<3.1.4|>=3.2.0.alpha0|<3.2.2" + }, + { + "test_index": 156, + "scheme": "gem", + "gitlab_native": "<3.0.13||>=3.1.0 <3.1.5||>=3.2.0 <3.2.4", + "expected_vers": "vers:gem/<3.0.13|>=3.1.0|<3.1.5|>=3.2.0|<3.2.4" + }, + { + "test_index": 157, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.10", + "expected_vers": "vers:gem/>=3.0.0|<3.0.10" + }, + { + "test_index": 158, + "scheme": "gem", + "gitlab_native": ">=3.2.0.0.alpha <3.2.22.2", + "expected_vers": "vers:gem/>=3.2.0.0.alpha|<3.2.22.2" + }, + { + "test_index": 159, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.7||>=6.1.0 <6.1.0.2", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.7|>=6.1.0|<6.1.0.2" + }, + { + "test_index": 160, + "scheme": "gem", + "gitlab_native": ">=3.2.0a <3.2.21||>=4.0.0a <4.0.11.1||>=4.1.0a <4.1.7.1", + "expected_vers": "vers:gem/>=3.2.0a|<3.2.21|>=4.0.0a|<4.0.11.1|>=4.1.0a|<4.1.7.1" + }, + { + "test_index": 161, + "scheme": "gem", + "gitlab_native": ">=3.0.0.alpha0 <3.0.11||>=3.1.0.alpha0 <3.1.2", + "expected_vers": "vers:gem/>=3.0.0.alpha0|<3.0.11|>=3.1.0.alpha0|<3.1.2" + }, + { + "test_index": 162, + "scheme": "gem", + "gitlab_native": ">=5.2.0.0 <5.2.4.6||>=6.0.0.0 <6.0.3.7||>=6.1.0.0 <6.1.3.1", + "expected_vers": "vers:gem/>=5.2.0.0|<5.2.4.6|>=6.0.0.0|<6.0.3.7|>=6.1.0.0|<6.1.3.1" + }, + { + "test_index": 163, + "scheme": "gem", + "gitlab_native": ">=2.3.0 <2.3.13", + "expected_vers": "vers:gem/>=2.3.0|<2.3.13" + }, + { + "test_index": 164, + "scheme": "gem", + "gitlab_native": ">=5.0.0.alpha <5.0.0.beta1.1||>=4.2.0.alpha <4.2.5.1||>=4.0.0.alpha <4.1.14.1||<3.2.22.1", + "expected_vers": "vers:gem/<3.2.22.1|>=4.0.0.alpha|<4.1.14.1|>=4.2.0.alpha|<4.2.5.1|>=5.0.0.alpha|<5.0.0.beta1.1" + }, + { + "test_index": 165, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <=6.0.4.1||>=6.1.0 <=6.1.4.1", + "expected_vers": "vers:gem/>=6.0.0|<=6.0.4.1|>=6.1.0|<=6.1.4.1" + }, + { + "test_index": 166, + "scheme": "gem", + "gitlab_native": ">=3.0.6 <3.2.16||>=4.0.0.beta1 <4.0.2", + "expected_vers": "vers:gem/>=3.0.6|<3.2.16|>=4.0.0.beta1|<4.0.2" + }, + { + "test_index": 167, + "scheme": "gem", + "gitlab_native": "<5.2.4.6||>=5.2.5 <5.2.6||>=6.0.0 <6.0.3.7||>=6.1.0 <6.1.3.2", + "expected_vers": "vers:gem/<5.2.4.6|>=5.2.5|<5.2.6|>=6.0.0|<6.0.3.7|>=6.1.0|<6.1.3.2" + }, + { + "test_index": 168, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1||=10.0", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1|10.0" + }, + { + "test_index": 169, + "scheme": "gem", + "gitlab_native": "<2.3.18 || >=2.4.0 <3.1.12 || >=3.2.0 <3.2.13", + "expected_vers": "vers:gem/<2.3.18|>=2.4.0|<3.1.12|>=3.2.0|<3.2.13" + }, + { + "test_index": 170, + "scheme": "gem", + "gitlab_native": "<3.2.16||>=4.0.0 <4.0.5||>=4.1.0 <4.1.1", + "expected_vers": "vers:gem/<3.2.16|>=4.0.0|<4.0.5|>=4.1.0|<4.1.1" + }, + { + "test_index": 171, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <3.2.16||>=4.0.0.beta1 <4.0.2", + "expected_vers": "vers:gem/>=2.0.0|<3.2.16|>=4.0.0.beta1|<4.0.2" + }, + { + "test_index": 172, + "scheme": "gem", + "gitlab_native": ">=5.0.0.0 <=5.2.6.1||>=6.0.0.0 <=6.0.4.5||>=6.1.0.0 <=6.1.4.5||>=7.0.0.0 <=7.0.2.1", + "expected_vers": "vers:gem/>=5.0.0.0|<=5.2.6.1|>=6.0.0.0|<=6.0.4.5|>=6.1.0.0|<=6.1.4.5|>=7.0.0.0|<=7.0.2.1" + }, + { + "test_index": 173, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.5||>=6.1.0 <6.1.2.1||=33", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.5|>=6.1.0|<6.1.2.1|33" + }, + { + "test_index": 174, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.17 || >=3.1.0 <3.1.8 || >=3.2.0 <3.2.8", + "expected_vers": "vers:gem/>=3.0.0|<3.0.17|>=3.1.0|<3.1.8|>=3.2.0|<3.2.8" + }, + { + "test_index": 175, + "scheme": "gem", + "gitlab_native": "<3.0.14||>=3.1.0 <3.1.6||>=3.2.0 <3.2.6", + "expected_vers": "vers:gem/<3.0.14|>=3.1.0|<3.1.6|>=3.2.0|<3.2.6" + }, + { + "test_index": 176, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 177, + "scheme": "gem", + "gitlab_native": "<3.2.16||>=4.0.0 <4.0.2", + "expected_vers": "vers:gem/<3.2.16|>=4.0.0|<4.0.2" + }, + { + "test_index": 178, + "scheme": "gem", + "gitlab_native": ">=0.3.0 <1.2", + "expected_vers": "vers:gem/>=0.3.0|<1.2" + }, + { + "test_index": 179, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.6||>=4.0.0 <4.3.5", + "expected_vers": "vers:gem/>=3.0.0|<3.12.6|>=4.0.0|<4.3.5" + }, + { + "test_index": 180, + "scheme": "gem", + "gitlab_native": "<=4.3.8||>=5.0.0 <=5.5.0", + "expected_vers": "vers:gem/<=4.3.8|>=5.0.0|<=5.5.0" + }, + { + "test_index": 181, + "scheme": "gem", + "gitlab_native": "<4.3.8||>=5.0.0 <5.3.1", + "expected_vers": "vers:gem/<4.3.8|>=5.0.0|<5.3.1" + }, + { + "test_index": 182, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.6||>=4.0.0 <4.3.5", + "expected_vers": "vers:gem/>=3.0.0|<3.12.6|>=4.0.0|<4.3.5" + }, + { + "test_index": 183, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.2||>=4.0.0 <4.3.1", + "expected_vers": "vers:gem/>=3.0.0|<3.12.2|>=4.0.0|<4.3.1" + }, + { + "test_index": 184, + "scheme": "gem", + "gitlab_native": "<4.3.11||>=5.0.0 <5.6.2", + "expected_vers": "vers:gem/<4.3.11|>=5.0.0|<5.6.2" + }, + { + "test_index": 185, + "scheme": "gem", + "gitlab_native": "<=3.12.3||>=4.0.0 <=4.3.2", + "expected_vers": "vers:gem/<=3.12.3|>=4.0.0|<=4.3.2" + }, + { + "test_index": 186, + "scheme": "gem", + "gitlab_native": "<4.3.12||>=5.0.0 <5.6.4", + "expected_vers": "vers:gem/<4.3.12|>=5.0.0|<5.6.4" + }, + { + "test_index": 187, + "scheme": "gem", + "gitlab_native": "<=3.12.3||>=4.0.0 <=4.3.2", + "expected_vers": "vers:gem/<=3.12.3|>=4.0.0|<=4.3.2" + }, + { + "test_index": 188, + "scheme": "gem", + "gitlab_native": ">=1.3.0 <1.3.1 || >=1.2.0 <1.2.2 || >=1.1.0 <1.1.1 || >=1.0.0 <1.0.4", + "expected_vers": "vers:gem/>=1.0.0|<1.0.4|>=1.1.0|<1.1.1|>=1.2.0|<1.2.2|>=1.3.0|<1.3.1" + }, + { + "test_index": 189, + "scheme": "gem", + "gitlab_native": ">=1.1.0.rc1 <1.1.0.rc5", + "expected_vers": "vers:gem/>=1.1.0.rc1|<1.1.0.rc5" + }, + { + "test_index": 190, + "scheme": "gem", + "gitlab_native": ">=1.79.0 <13.3.9||>=13.4.0 <13.4.5||>=13.5.0 <13.5.2", + "expected_vers": "vers:gem/>=1.79.0|<13.3.9|>=13.4.0|<13.4.5|>=13.5.0|<13.5.2" + }, + { + "test_index": 191, + "scheme": "gem", + "gitlab_native": ">=2.1.0pre1 <2.1.1", + "expected_vers": "vers:gem/>=2.1.0pre1|<2.1.1" + }, + { + "test_index": 192, + "scheme": "gem", + "gitlab_native": "<1.6.0||>=1.6.2 <1.6.3", + "expected_vers": "vers:gem/<1.6.0|>=1.6.2|<1.6.3" + }, + { + "test_index": 193, + "scheme": "gem", + "gitlab_native": "<1.7.6||>=2.0.0 <2.0.2", + "expected_vers": "vers:gem/<1.7.6|>=2.0.0|<2.0.2" + }, + { + "test_index": 194, + "scheme": "gem", + "gitlab_native": ">=0.4.0 <=0.4.1", + "expected_vers": "vers:gem/>=0.4.0|<=0.4.1" + }, + { + "test_index": 195, + "scheme": "gem", + "gitlab_native": ">=0.119.0 <=0.125.1", + "expected_vers": "vers:gem/>=0.119.0|<=0.125.1" + }, + { + "test_index": 196, + "scheme": "gem", + "gitlab_native": "<2.1.4||>=2.2.0 <2.2.3", + "expected_vers": "vers:gem/<2.1.4|>=2.2.0|<2.2.3" + }, + { + "test_index": 197, + "scheme": "gem", + "gitlab_native": "<1.6.12||>1.6.12 <2.0.8", + "expected_vers": "vers:gem/<1.6.12|>1.6.12|<2.0.8" + }, + { + "test_index": 198, + "scheme": "gem", + "gitlab_native": ">=1.3.0 <=1.4.2", + "expected_vers": "vers:gem/>=1.3.0|<=1.4.2" + }, + { + "test_index": 199, + "scheme": "gem", + "gitlab_native": ">=1.1.0 <1.1.6 || >=1.2.0 <1.2.8 || >=1.3.0 <1.3.10 || >=1.4.0 <1.4.5 || >=1.5.0 <1.5.2", + "expected_vers": "vers:gem/>=1.1.0|<1.1.6|>=1.2.0|<1.2.8|>=1.3.0|<1.3.10|>=1.4.0|<1.4.5|>=1.5.0|<1.5.2" + }, + { + "test_index": 200, + "scheme": "gem", + "gitlab_native": ">=0.4 <=1.4.1", + "expected_vers": "vers:gem/>=0.4|<=1.4.1" + }, + { + "test_index": 201, + "scheme": "gem", + "gitlab_native": ">=1.4.0 <1.4.5 || >=1.5.0 <1.5.2", + "expected_vers": "vers:gem/>=1.4.0|<1.4.5|>=1.5.0|<1.5.2" + }, + { + "test_index": 202, + "scheme": "gem", + "gitlab_native": "<1.1.3||>=1.2.0 <1.2.5||>=1.3.0.beta <1.3.6", + "expected_vers": "vers:gem/<1.1.3|>=1.2.0|<1.2.5|>=1.3.0.beta|<1.3.6" + }, + { + "test_index": 203, + "scheme": "gem", + "gitlab_native": "<1.4.6||>=1.5.0a <1.5.4||>=1.6.0a <1.6.2", + "expected_vers": "vers:gem/<1.4.6|>=1.5.0a|<1.5.4|>=1.6.0a|<1.6.2" + }, + { + "test_index": 204, + "scheme": "gem", + "gitlab_native": ">=2.0.4 <=2.0.5", + "expected_vers": "vers:gem/>=2.0.4|<=2.0.5" + }, + { + "test_index": 205, + "scheme": "gem", + "gitlab_native": ">=1.1.0 <=1.4.3", + "expected_vers": "vers:gem/>=1.1.0|<=1.4.3" + }, + { + "test_index": 206, + "scheme": "gem", + "gitlab_native": ">=1.6.0 <1.6.11||>=2.0.0 <2.0.6", + "expected_vers": "vers:gem/>=1.6.0|<1.6.11|>=2.0.0|<2.0.6" + }, + { + "test_index": 207, + "scheme": "gem", + "gitlab_native": ">=0.8.0 <0.8.7.1", + "expected_vers": "vers:gem/>=0.8.0|<0.8.7.1" + }, + { + "test_index": 208, + "scheme": "gem", + "gitlab_native": ">=4.0.0.alpha <4.2.7.1||>=5.0.0.alpha <5.0.0.1", + "expected_vers": "vers:gem/>=4.0.0.alpha|<4.2.7.1|>=5.0.0.alpha|<5.0.0.1" + }, + { + "test_index": 209, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <4.2.11.1||>=5.0.0 <5.0.7.2||>=5.1.0 <5.1.6.2||>=5.2.0 <5.2.2.1", + "expected_vers": "vers:gem/>=3.0.0|<4.2.11.1|>=5.0.0|<5.0.7.2|>=5.1.0|<5.1.6.2|>=5.2.0|<5.2.2.1" + }, + { + "test_index": 210, + "scheme": "gem", + "gitlab_native": ">=4.0.0.0.alpha <4.1.14.2", + "expected_vers": "vers:gem/>=4.0.0.0.alpha|<4.1.14.2" + }, + { + "test_index": 211, + "scheme": "gem", + "gitlab_native": ">=5.0.0.alpha <5.0.0.beta1.1||>=4.2.0.alpha <4.2.5.1||<4.1.14.1", + "expected_vers": "vers:gem/<4.1.14.1|>=4.2.0.alpha|<4.2.5.1|>=5.0.0.alpha|<5.0.0.beta1.1" + }, + { + "test_index": 212, + "scheme": "gem", + "gitlab_native": "<5.2.4.2||>=6.0.0 <6.0.2.2", + "expected_vers": "vers:gem/<5.2.4.2|>=6.0.0|<6.0.2.2" + }, + { + "test_index": 213, + "scheme": "gem", + "gitlab_native": "<5.2.4.4||>=6.0.0.0 <6.0.3.3", + "expected_vers": "vers:gem/<5.2.4.4|>=6.0.0.0|<6.0.3.3" + }, + { + "test_index": 214, + "scheme": "gem", + "gitlab_native": "<4.2.11.1||>=5.0.0 <5.0.7.2||>=5.1.0 <5.1.6.2||>=5.2.0 <5.2.2.1", + "expected_vers": "vers:gem/<4.2.11.1|>=5.0.0|<5.0.7.2|>=5.1.0|<5.1.6.2|>=5.2.0|<5.2.2.1" + }, + { + "test_index": 215, + "scheme": "gem", + "gitlab_native": "<0.26.6||>=0.27.0 <0.27.4", + "expected_vers": "vers:gem/<0.26.6|>=0.27.0|<0.27.4" + }, + { + "test_index": 216, + "scheme": "gem", + "gitlab_native": "<0.21.3||>0.22a", + "expected_vers": "vers:gem/<0.21.3|>0.22a" + }, + { + "test_index": 217, + "scheme": "gem", + "gitlab_native": "=3.0.23||=3.0.28", + "expected_vers": "vers:gem/3.0.23|3.0.28" + }, + { + "test_index": 218, + "scheme": "gem", + "gitlab_native": ">=2.0.4 <4.0.0.beta1", + "expected_vers": "vers:gem/>=2.0.4|<4.0.0.beta1" + }, + { + "test_index": 219, + "scheme": "gem", + "gitlab_native": ">=2.0 <2.7.7", + "expected_vers": "vers:gem/>=2.0|<2.7.7" + }, + { + "test_index": 220, + "scheme": "gem", + "gitlab_native": "<2.8.6||>=2.9.0 <2.9.6||>=2.10.0 <2.10.2", + "expected_vers": "vers:gem/<2.8.6|>=2.9.0|<2.9.6|>=2.10.0|<2.10.2" + }, + { + "test_index": 221, + "scheme": "gem", + "gitlab_native": ">=1.6.1 <1.8.0", + "expected_vers": "vers:gem/>=1.6.1|<1.8.0" + }, + { + "test_index": 222, + "scheme": "gem", + "gitlab_native": ">=1.6.10 <=1.6.13", + "expected_vers": "vers:gem/>=1.6.10|<=1.6.13" + }, + { + "test_index": 223, + "scheme": "gem", + "gitlab_native": "<2.8.6||>=2.9.0 <2.9.6||>=2.10.0 <2.10.2", + "expected_vers": "vers:gem/<2.8.6|>=2.9.0|<2.9.6|>=2.10.0|<2.10.2" + }, + { + "test_index": 224, + "scheme": "gem", + "gitlab_native": "<2.11.14||>=3.0.0 <3.0.5||>=3.1.0 <3.1.5", + "expected_vers": "vers:gem/<2.11.14|>=3.0.0|<3.0.5|>=3.1.0|<3.1.5" + }, + { + "test_index": 225, + "scheme": "gem", + "gitlab_native": "<2.11.12||>=3.0.0 <3.0.3||>=3.1.0 <3.1.3", + "expected_vers": "vers:gem/<2.11.12|>=3.0.0|<3.0.3|>=3.1.0|<3.1.3" + }, + { + "test_index": 226, + "scheme": "gem", + "gitlab_native": "<2.11.13||>=3.0.0 <3.0.4||>=3.1.0 <3.1.4", + "expected_vers": "vers:gem/<2.11.13|>=3.0.0|<3.0.4|>=3.1.0|<3.1.4" + }, + { + "test_index": 227, + "scheme": "gem", + "gitlab_native": ">=5.2.0 <5.2.1.1", + "expected_vers": "vers:gem/>=5.2.0|<5.2.1.1" + }, + { + "test_index": 228, + "scheme": "gem", + "gitlab_native": "<5.2.4.2||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.2|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 229, + "scheme": "gem", + "gitlab_native": ">=5.2.0 <=5.2.6.2||>=6.0.0 <=6.0.4.6||>=6.1.0 <=6.1.4.6||>=7.0.0 <=7.0.2.2", + "expected_vers": "vers:gem/>=5.2.0|<=5.2.6.2|>=6.0.0|<=6.0.4.6|>=6.1.0|<=6.1.4.6|>=7.0.0|<=7.0.2.2" + }, + { + "test_index": 230, + "scheme": "gem", + "gitlab_native": ">=3.1.0 <=3.1.3", + "expected_vers": "vers:gem/>=3.1.0|<=3.1.3" + }, + { + "test_index": 231, + "scheme": "gem", + "gitlab_native": "<3.1.3||>=4.0.0a <4.0.4", + "expected_vers": "vers:gem/<3.1.3|>=4.0.0a|<4.0.4" + }, + { + "test_index": 232, + "scheme": "gem", + "gitlab_native": ">=1.5 <1.5.11 || >=1.6 <1.6.1", + "expected_vers": "vers:gem/>=1.5|<1.5.11|>=1.6|<1.6.1" + }, + { + "test_index": 233, + "scheme": "gem", + "gitlab_native": ">=1.6.0 <=1.6.7", + "expected_vers": "vers:gem/>=1.6.0|<=1.6.7" + }, + { + "test_index": 234, + "scheme": "gem", + "gitlab_native": "<1.6.6.3||>=1.6.7.rc2 <1.6.7.rc4", + "expected_vers": "vers:gem/<1.6.6.3|>=1.6.7.rc2|<1.6.7.rc4" + }, + { + "test_index": 235, + "scheme": "gem", + "gitlab_native": ">=1.5 <1.5.11 || >=1.6 <1.6.1", + "expected_vers": "vers:gem/>=1.5|<1.5.11|>=1.6|<1.6.1" + }, + { + "test_index": 236, + "scheme": "gem", + "gitlab_native": "<1.6.6.4 ||>=1.6.7.rc2 <1.6.7.rc4", + "expected_vers": "vers:gem/<1.6.6.4|>=1.6.7.rc2|<1.6.7.rc4" + }, + { + "test_index": 237, + "scheme": "gem", + "gitlab_native": ">=1.6.0.0a <1.6.7.2", + "expected_vers": "vers:gem/>=1.6.0.0a|<1.6.7.2" + }, + { + "test_index": 238, + "scheme": "gem", + "gitlab_native": "<1.6.6.4||>=1.6.7.rc1 <1.6.7.rc4", + "expected_vers": "vers:gem/<1.6.6.4|>=1.6.7.rc1|<1.6.7.rc4" + }, + { + "test_index": 239, + "scheme": "gem", + "gitlab_native": ">=1.6.0.rc1 <1.6.7.1", + "expected_vers": "vers:gem/>=1.6.0.rc1|<1.6.7.1" + }, + { + "test_index": 240, + "scheme": "gem", + "gitlab_native": ">=3.2.0 <3.5.2", + "expected_vers": "vers:gem/>=3.2.0|<3.5.2" + }, + { + "test_index": 241, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.6||>=4.0.0 <4.3.5", + "expected_vers": "vers:gem/>=3.0.0|<3.12.6|>=4.0.0|<4.3.5" + }, + { + "test_index": 242, + "scheme": "gem", + "gitlab_native": "<4.3.8||>=5.0.0 <5.3.1", + "expected_vers": "vers:gem/<4.3.8|>=5.0.0|<5.3.1" + }, + { + "test_index": 243, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.6||>=4.0.0 <4.3.5", + "expected_vers": "vers:gem/>=3.0.0|<3.12.6|>=4.0.0|<4.3.5" + }, + { + "test_index": 244, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.12.2||>=4.0.0 <4.3.1", + "expected_vers": "vers:gem/>=3.0.0|<3.12.2|>=4.0.0|<4.3.1" + }, + { + "test_index": 245, + "scheme": "gem", + "gitlab_native": "<=3.12.3||>=4.0.0 <=4.3.2", + "expected_vers": "vers:gem/<=3.12.3|>=4.0.0|<=4.3.2" + }, + { + "test_index": 246, + "scheme": "gem", + "gitlab_native": "<4.3.12||>=5.0.0 <5.6.4", + "expected_vers": "vers:gem/<4.3.12|>=5.0.0|<5.6.4" + }, + { + "test_index": 247, + "scheme": "gem", + "gitlab_native": "<=3.12.3||>=4.0.0 <=4.3.2", + "expected_vers": "vers:gem/<=3.12.3|>=4.0.0|<=4.3.2" + }, + { + "test_index": 248, + "scheme": "gem", + "gitlab_native": "<=4.0.1||>=4.1.0 <=4.4.1", + "expected_vers": "vers:gem/<=4.0.1|>=4.1.0|<=4.4.1" + }, + { + "test_index": 249, + "scheme": "gem", + "gitlab_native": ">=5.1.0 <5.1.6.1||>=4.2.0 <4.2.11||>=5.0.0 <5.0.7.1||>=5.2.0 <5.2.1.1", + "expected_vers": "vers:gem/>=4.2.0|<4.2.11|>=5.0.0|<5.0.7.1|>=5.1.0|<5.1.6.1|>=5.2.0|<5.2.1.1" + }, + { + "test_index": 250, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.2.3||>=2.3.0 <2.3.4", + "expected_vers": "vers:gem/>=2.0.0|<2.2.3|>=2.3.0|<2.3.4" + }, + { + "test_index": 251, + "scheme": "gem", + "gitlab_native": "<2.2.2||>=2.3.0 <2.3.5", + "expected_vers": "vers:gem/<2.2.2|>=2.3.0|<2.3.5" + }, + { + "test_index": 252, + "scheme": "gem", + "gitlab_native": ">4.0.0.beta <4.0.3 || =4.1.0.beta1", + "expected_vers": "vers:gem/>4.0.0.beta|<4.0.3|4.1.0.beta1" + }, + { + "test_index": 253, + "scheme": "gem", + "gitlab_native": "<2.3.11||>=3.0.0 <3.0.4", + "expected_vers": "vers:gem/<2.3.11|>=3.0.0|<3.0.4" + }, + { + "test_index": 254, + "scheme": "gem", + "gitlab_native": ">=6.1.0 <=6.1.3.2", + "expected_vers": "vers:gem/>=6.1.0|<=6.1.3.2" + }, + { + "test_index": 255, + "scheme": "gem", + "gitlab_native": ">=5.2.0 <5.2.1.1", + "expected_vers": "vers:gem/>=5.2.0|<5.2.1.1" + }, + { + "test_index": 256, + "scheme": "gem", + "gitlab_native": ">=5.2.0 <5.2.2.1||>=6.0.0.beta1 <6.0.0", + "expected_vers": "vers:gem/>=5.2.0|<5.2.2.1|>=6.0.0.beta1|<6.0.0" + }, + { + "test_index": 257, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 258, + "scheme": "gem", + "gitlab_native": "<3.2.17 || >=4.0.0.beta <4.0.3 || =4.1.0.beta1", + "expected_vers": "vers:gem/<3.2.17|>=4.0.0.beta|<4.0.3|4.1.0.beta1" + }, + { + "test_index": 259, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.4.1||>=6.1.0 <6.1.4.1", + "expected_vers": "vers:gem/>=6.0.0|<6.0.4.1|>=6.1.0|<6.1.4.1" + }, + { + "test_index": 260, + "scheme": "gem", + "gitlab_native": ">=4.0.0 <=4.2.5.1", + "expected_vers": "vers:gem/>=4.0.0|<=4.2.5.1" + }, + { + "test_index": 261, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.4", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.4" + }, + { + "test_index": 262, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.2", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.2" + }, + { + "test_index": 263, + "scheme": "gem", + "gitlab_native": ">=4.2.0 <5.2.4.5||>=6.0.0 <6.0.3.5||>=6.1.0 <6.1.2.1", + "expected_vers": "vers:gem/>=4.2.0|<5.2.4.5|>=6.0.0|<6.0.3.5|>=6.1.0|<6.1.2.1" + }, + { + "test_index": 264, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.2.16||>=4.0.0.beta1 <4.0.2", + "expected_vers": "vers:gem/>=3.0.0|<3.2.16|>=4.0.0.beta1|<4.0.2" + }, + { + "test_index": 265, + "scheme": "gem", + "gitlab_native": ">=4.2.0 <=4.2.7", + "expected_vers": "vers:gem/>=4.2.0|<=4.2.7" + }, + { + "test_index": 266, + "scheme": "gem", + "gitlab_native": ">=1.1.0 <1.1.6", + "expected_vers": "vers:gem/>=1.1.0|<1.1.6" + }, + { + "test_index": 267, + "scheme": "gem", + "gitlab_native": "<4.2.11.1||>=5.0.0 <5.0.7.2||>=5.1.0 <5.1.6.2||>=5.2.0 <5.2.2.1", + "expected_vers": "vers:gem/<4.2.11.1|>=5.0.0|<5.0.7.2|>=5.1.0|<5.1.6.2|>=5.2.0|<5.2.2.1" + }, + { + "test_index": 268, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 269, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.3.11||>=3.0.0 <3.0.7", + "expected_vers": "vers:gem/>=2.0.0|<2.3.11|>=3.0.0|<3.0.7" + }, + { + "test_index": 270, + "scheme": "gem", + "gitlab_native": "<5.2.4.2||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.2|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 271, + "scheme": "gem", + "gitlab_native": ">=2.1.0 <2.3.11||>=3.0.0 <3.0.4", + "expected_vers": "vers:gem/>=2.1.0|<2.3.11|>=3.0.0|<3.0.4" + }, + { + "test_index": 272, + "scheme": "gem", + "gitlab_native": ">=2.1.0 <2.2.3||>=2.3.0 <2.3.4", + "expected_vers": "vers:gem/>=2.1.0|<2.2.3|>=2.3.0|<2.3.4" + }, + { + "test_index": 273, + "scheme": "gem", + "gitlab_native": "<3.2.22.2||>=4.0.0.0 <4.1.14.2", + "expected_vers": "vers:gem/<3.2.22.2|>=4.0.0.0|<4.1.14.2" + }, + { + "test_index": 274, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.7||>=6.1.0 <6.1.0.2", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.7|>=6.1.0|<6.1.0.2" + }, + { + "test_index": 275, + "scheme": "gem", + "gitlab_native": ">=4.0.0 <=5.0.0", + "expected_vers": "vers:gem/>=4.0.0|<=5.0.0" + }, + { + "test_index": 276, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.11||>=3.1.0 <3.1.2", + "expected_vers": "vers:gem/>=3.0.0|<3.0.11|>=3.1.0|<3.1.2" + }, + { + "test_index": 277, + "scheme": "gem", + "gitlab_native": ">=5.2.0.0 <5.2.4.6||>=6.0.0.0 <6.0.3.7||>=6.1.0.0 <6.1.3.1", + "expected_vers": "vers:gem/>=5.2.0.0|<5.2.4.6|>=6.0.0.0|<6.0.3.7|>=6.1.0.0|<6.1.3.1" + }, + { + "test_index": 278, + "scheme": "gem", + "gitlab_native": ">=4.0.0 <=5.0.0", + "expected_vers": "vers:gem/>=4.0.0|<=5.0.0" + }, + { + "test_index": 279, + "scheme": "gem", + "gitlab_native": ">=4.2.0 <4.2.11||>=5.0.0 <5.0.7.1||>=5.1.0 <5.1.6.1||>=5.2.0 <5.2.1.1", + "expected_vers": "vers:gem/>=4.2.0|<4.2.11|>=5.0.0|<5.0.7.1|>=5.1.0|<5.1.6.1|>=5.2.0|<5.2.1.1" + }, + { + "test_index": 280, + "scheme": "gem", + "gitlab_native": ">=6.0.4.2 <=6.1.4.2||=7.0.0", + "expected_vers": "vers:gem/>=6.0.4.2|<=6.1.4.2|7.0.0" + }, + { + "test_index": 281, + "scheme": "gem", + "gitlab_native": "<5.2.4.6||>=5.2.5 <5.2.6||>=6.0.0 <6.0.3.7||>=6.1.0 <6.1.3.2", + "expected_vers": "vers:gem/<5.2.4.6|>=5.2.5|<5.2.6|>=6.0.0|<6.0.3.7|>=6.1.0|<6.1.3.2" + }, + { + "test_index": 282, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 283, + "scheme": "gem", + "gitlab_native": ">=4.1 <4.1.1 || >4.0 <4.0.5 || >=0.0 <3.2.18", + "expected_vers": "vers:gem/>=0.0|<3.2.18|>4.0|<4.0.5|>=4.1|<4.1.1" + }, + { + "test_index": 284, + "scheme": "gem", + "gitlab_native": ">=1.1.0 <1.1.6", + "expected_vers": "vers:gem/>=1.1.0|<1.1.6" + }, + { + "test_index": 285, + "scheme": "gem", + "gitlab_native": "<4.2.11.1||>=5.0.0 <5.0.7.2||>=5.1.0 <5.1.6.2||>=5.2.0 <5.2.2.1", + "expected_vers": "vers:gem/<4.2.11.1|>=5.0.0|<5.0.7.2|>=5.1.0|<5.1.6.2|>=5.2.0|<5.2.2.1" + }, + { + "test_index": 286, + "scheme": "gem", + "gitlab_native": ">=5.0.0 <5.2.6.2||>=6.0.0 <6.0.4.6||>=6.1.0 <6.1.4.6||>=7.0.0 <7.0.2.2", + "expected_vers": "vers:gem/>=5.0.0|<5.2.6.2|>=6.0.0|<6.0.4.6|>=6.1.0|<6.1.4.6|>=7.0.0|<7.0.2.2" + }, + { + "test_index": 287, + "scheme": "gem", + "gitlab_native": ">=6.0.0 <6.0.3.5||>=6.1.0 <6.1.2.1", + "expected_vers": "vers:gem/>=6.0.0|<6.0.3.5|>=6.1.0|<6.1.2.1" + }, + { + "test_index": 288, + "scheme": "gem", + "gitlab_native": ">=2.1.0 <2.1.3||>=2.2.0 <2.2.2", + "expected_vers": "vers:gem/>=2.1.0|<2.1.3|>=2.2.0|<2.2.2" + }, + { + "test_index": 289, + "scheme": "gem", + "gitlab_native": "<5.2.4.3||>=6.0.0 <6.0.3.1", + "expected_vers": "vers:gem/<5.2.4.3|>=6.0.0|<6.0.3.1" + }, + { + "test_index": 290, + "scheme": "gem", + "gitlab_native": ">=3.0.0.beta <3.2.17", + "expected_vers": "vers:gem/>=3.0.0.beta|<3.2.17" + }, + { + "test_index": 291, + "scheme": "gem", + "gitlab_native": ">=2.3.9 <2.3.10||>=3.0.0 <3.0.1", + "expected_vers": "vers:gem/>=2.3.9|<2.3.10|>=3.0.0|<3.0.1" + }, + { + "test_index": 292, + "scheme": "gem", + "gitlab_native": ">=1.0.0 <1.2.0", + "expected_vers": "vers:gem/>=1.0.0|<1.2.0" + }, + { + "test_index": 293, + "scheme": "gem", + "gitlab_native": ">=5.2.0 <5.2.2.1||>=6.0.0.beta1 <6.0.0", + "expected_vers": "vers:gem/>=5.2.0|<5.2.2.1|>=6.0.0.beta1|<6.0.0" + }, + { + "test_index": 294, + "scheme": "gem", + "gitlab_native": "<2.3.18 || >=2.4.0 <3.0.0 || >=3.1.0 <3.1.12 || >=3.2.0 <3.2.13", + "expected_vers": "vers:gem/<2.3.18|>=2.4.0|<3.0.0|>=3.1.0|<3.1.12|>=3.2.0|<3.2.13" + }, + { + "test_index": 295, + "scheme": "gem", + "gitlab_native": ">=3.2.0 <4.0.3", + "expected_vers": "vers:gem/>=3.2.0|<4.0.3" + }, + { + "test_index": 296, + "scheme": "gem", + "gitlab_native": ">=2.0.0 <2.3.13||>=3.0.0 <3.0.10", + "expected_vers": "vers:gem/>=2.0.0|<2.3.13|>=3.0.0|<3.0.10" + }, + { + "test_index": 297, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.13||>=3.1.0 <3.1.5||>=3.2.0 <3.2.4", + "expected_vers": "vers:gem/>=3.0.0|<3.0.13|>=3.1.0|<3.1.5|>=3.2.0|<3.2.4" + }, + { + "test_index": 298, + "scheme": "gem", + "gitlab_native": ">=4.2.0 <5.2.4.5||>=6.0.0 <6.0.3.5||>=6.1.0 <6.1.2.1", + "expected_vers": "vers:gem/>=4.2.0|<5.2.4.5|>=6.0.0|<6.0.3.5|>=6.1.0|<6.1.2.1" + }, + { + "test_index": 299, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.18||>=3.1.0 <3.1.9||>=3.2.0 <3.2.10", + "expected_vers": "vers:gem/>=3.0.0|<3.0.18|>=3.1.0|<3.1.9|>=3.2.0|<3.2.10" + }, + { + "test_index": 300, + "scheme": "gem", + "gitlab_native": ">=4.0.0.alpha <4.2.7.1", + "expected_vers": "vers:gem/>=4.0.0.alpha|<4.2.7.1" + }, + { + "test_index": 301, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.13||>=3.1.0 <3.1.5||>=3.2.0 <3.2.4", + "expected_vers": "vers:gem/>=3.0.0|<3.0.13|>=3.1.0|<3.1.5|>=3.2.0|<3.2.4" + }, + { + "test_index": 302, + "scheme": "gem", + "gitlab_native": ">4.0.0 <4.0.7||>4.1.0 <4.1.3", + "expected_vers": "vers:gem/>4.0.0|<4.0.7|>4.1.0|<4.1.3" + }, + { + "test_index": 303, + "scheme": "gem", + "gitlab_native": "<2.3.17 || >=2.4.0 <3.1.0", + "expected_vers": "vers:gem/<2.3.17|>=2.4.0|<3.1.0" + }, + { + "test_index": 304, + "scheme": "gem", + "gitlab_native": ">=5.0.0.alpha <5.0.0.beta1.1||>=4.2.0.alpha <4.2.5.1||>=4.0.0.alpha <4.1.14.1||>=3.1.0.alpha <3.2.22.1", + "expected_vers": "vers:gem/>=3.1.0.alpha|<3.2.22.1|>=4.0.0.alpha|<4.1.14.1|>=4.2.0.alpha|<4.2.5.1|>=5.0.0.alpha|<5.0.0.beta1.1" + }, + { + "test_index": 305, + "scheme": "gem", + "gitlab_native": ">4.0.0 <4.0.9||>4.1.0 <4.1.5", + "expected_vers": "vers:gem/>4.0.0|<4.0.9|>4.1.0|<4.1.5" + }, + { + "test_index": 306, + "scheme": "gem", + "gitlab_native": ">2.0.0 <3.2.19", + "expected_vers": "vers:gem/>2.0.0|<3.2.19" + }, + { + "test_index": 307, + "scheme": "gem", + "gitlab_native": "<3.0.19 || >=3.1.0 <3.1.10 || >=3.2.0 <3.2.11", + "expected_vers": "vers:gem/<3.0.19|>=3.1.0|<3.1.10|>=3.2.0|<3.2.11" + }, + { + "test_index": 308, + "scheme": "gem", + "gitlab_native": ">=3.0.0 <3.0.4", + "expected_vers": "vers:gem/>=3.0.0|<3.0.4" + }, + { + "test_index": 309, + "scheme": "gem", + "gitlab_native": "<3.0.14||>=3.1.0 <3.1.6||>=3.2.0 <3.2.6", + "expected_vers": "vers:gem/<3.0.14|>=3.1.0|<3.1.6|>=3.2.0|<3.2.6" + }, + { + "test_index": 310, + "scheme": "gem", + "gitlab_native": ">0.0.0a <0.6.4||>0.7.0a <0.7.3", + "expected_vers": "vers:gem/>0.0.0a|<0.6.4|>0.7.0a|<0.7.3" + }, + { + "test_index": 311, + "scheme": "gem", + "gitlab_native": ">=1.2 <3.5.0", + "expected_vers": "vers:gem/>=1.2|<3.5.0" + }, + { + "test_index": 312, + "scheme": "gem", + "gitlab_native": ">=3.11 <6.3.1", + "expected_vers": "vers:gem/>=3.11|<6.3.1" + }, + { + "test_index": 313, + "scheme": "gem", + "gitlab_native": ">=1.0.3 <3.5.0", + "expected_vers": "vers:gem/>=1.0.3|<3.5.0" + }, + { + "test_index": 314, + "scheme": "gem", + "gitlab_native": ">=2.3.0 <3.9.5 || >=3.10 <3.12 || >=4.0.0.preview2 <4.0.0.rc.2", + "expected_vers": "vers:gem/>=2.3.0|<3.9.5|>=3.10|<3.12|>=4.0.0.preview2|<4.0.0.rc.2" + }, + { + "test_index": 315, + "scheme": "gem", + "gitlab_native": ">=4.2.2 <4.3.6", + "expected_vers": "vers:gem/>=4.2.2|<4.3.6" + }, + { + "test_index": 316, + "scheme": "gem", + "gitlab_native": ">=3.1.4 <5.2.0", + "expected_vers": "vers:gem/>=3.1.4|<5.2.0" + }, + { + "test_index": 317, + "scheme": "gem", + "gitlab_native": "<0.5.1||>=0.6.0 <0.6.6", + "expected_vers": "vers:gem/<0.5.1|>=0.6.0|<0.6.6" + } +] \ No newline at end of file diff --git a/tests/data/npm_gitlab.json b/tests/data/npm_gitlab.json new file mode 100644 index 00000000..109e4376 --- /dev/null +++ b/tests/data/npm_gitlab.json @@ -0,0 +1,3200 @@ +[ + { + "test_index": 1, + "scheme": "npm", + "gitlab_native": "<4.2.0", + "expected_vers": "vers:npm/<4.2.0" + }, + { + "test_index": 2, + "scheme": "npm", + "gitlab_native": "<=3.3", + "expected_vers": "vers:npm/<=3.3.0" + }, + { + "test_index": 3, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 4, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 5, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 6, + "scheme": "npm", + "gitlab_native": "<0.5.3", + "expected_vers": "vers:npm/<0.5.3" + }, + { + "test_index": 7, + "scheme": "npm", + "gitlab_native": "<=0.3.0", + "expected_vers": "vers:npm/<=0.3.0" + }, + { + "test_index": 8, + "scheme": "npm", + "gitlab_native": "<0.3.1", + "expected_vers": "vers:npm/<0.3.1" + }, + { + "test_index": 9, + "scheme": "npm", + "gitlab_native": "<0.3.4", + "expected_vers": "vers:npm/<0.3.4" + }, + { + "test_index": 10, + "scheme": "npm", + "gitlab_native": "<3.1.0", + "expected_vers": "vers:npm/<3.1.0" + }, + { + "test_index": 11, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 12, + "scheme": "npm", + "gitlab_native": "<=0.0.1", + "expected_vers": "vers:npm/<=0.0.1" + }, + { + "test_index": 13, + "scheme": "npm", + "gitlab_native": "<0.4.9", + "expected_vers": "vers:npm/<0.4.9" + }, + { + "test_index": 14, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 15, + "scheme": "npm", + "gitlab_native": "<=0.5.0", + "expected_vers": "vers:npm/<=0.5.0" + }, + { + "test_index": 16, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 17, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 18, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 19, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 20, + "scheme": "npm", + "gitlab_native": "<3.1.6", + "expected_vers": "vers:npm/<3.1.6" + }, + { + "test_index": 21, + "scheme": "npm", + "gitlab_native": "<=0.0.9", + "expected_vers": "vers:npm/<=0.0.9" + }, + { + "test_index": 22, + "scheme": "npm", + "gitlab_native": "<=0.0.9", + "expected_vers": "vers:npm/<=0.0.9" + }, + { + "test_index": 23, + "scheme": "npm", + "gitlab_native": "<=0.0.9", + "expected_vers": "vers:npm/<=0.0.9" + }, + { + "test_index": 24, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 25, + "scheme": "npm", + "gitlab_native": "<1.1.0", + "expected_vers": "vers:npm/<1.1.0" + }, + { + "test_index": 26, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 27, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 28, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 29, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 30, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 31, + "scheme": "npm", + "gitlab_native": "<3.8.1", + "expected_vers": "vers:npm/<3.8.1" + }, + { + "test_index": 32, + "scheme": "npm", + "gitlab_native": "<3.8.1", + "expected_vers": "vers:npm/<3.8.1" + }, + { + "test_index": 33, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 34, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 35, + "scheme": "npm", + "gitlab_native": "<=2.48.0", + "expected_vers": "vers:npm/<=2.48.0" + }, + { + "test_index": 36, + "scheme": "npm", + "gitlab_native": "<7.4.4", + "expected_vers": "vers:npm/<7.4.4" + }, + { + "test_index": 37, + "scheme": "npm", + "gitlab_native": "<1.10.0", + "expected_vers": "vers:npm/<1.10.0" + }, + { + "test_index": 38, + "scheme": "npm", + "gitlab_native": "<=2.5.0", + "expected_vers": "vers:npm/<=2.5.0" + }, + { + "test_index": 39, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 40, + "scheme": "npm", + "gitlab_native": "<0.0.25", + "expected_vers": "vers:npm/<0.0.25" + }, + { + "test_index": 41, + "scheme": "npm", + "gitlab_native": "<=0.0.25", + "expected_vers": "vers:npm/<=0.0.25" + }, + { + "test_index": 42, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 43, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 44, + "scheme": "npm", + "gitlab_native": "<8.31.2", + "expected_vers": "vers:npm/<8.31.2" + }, + { + "test_index": 45, + "scheme": "npm", + "gitlab_native": "=8.0.0", + "expected_vers": "vers:npm/8.0.0" + }, + { + "test_index": 46, + "scheme": "npm", + "gitlab_native": "<39.1.0", + "expected_vers": "vers:npm/<39.1.0" + }, + { + "test_index": 47, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 48, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 49, + "scheme": "npm", + "gitlab_native": "=0.1.2", + "expected_vers": "vers:npm/0.1.2" + }, + { + "test_index": 50, + "scheme": "npm", + "gitlab_native": "<13.0.8", + "expected_vers": "vers:npm/<13.0.8" + }, + { + "test_index": 51, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 52, + "scheme": "npm", + "gitlab_native": "<2.1.4||>=3.0.0 <6.0.6", + "expected_vers": "vers:npm/<2.1.4|>=3.0.0|<6.0.6" + }, + { + "test_index": 53, + "scheme": "npm", + "gitlab_native": "<2.1.4||>=3.0.0 <6.0.6", + "expected_vers": "vers:npm/<2.1.4|>=3.0.0|<6.0.6" + }, + { + "test_index": 54, + "scheme": "npm", + "gitlab_native": "<7.3.1", + "expected_vers": "vers:npm/<7.3.1" + }, + { + "test_index": 55, + "scheme": "npm", + "gitlab_native": "<1.1.0", + "expected_vers": "vers:npm/<1.1.0" + }, + { + "test_index": 56, + "scheme": "npm", + "gitlab_native": "=2.0.43", + "expected_vers": "vers:npm/2.0.43" + }, + { + "test_index": 57, + "scheme": "npm", + "gitlab_native": "<0.1.7", + "expected_vers": "vers:npm/<0.1.7" + }, + { + "test_index": 58, + "scheme": "npm", + "gitlab_native": "<0.5.1", + "expected_vers": "vers:npm/<0.5.1" + }, + { + "test_index": 59, + "scheme": "npm", + "gitlab_native": "<1.0.0", + "expected_vers": "vers:npm/<1.0.0" + }, + { + "test_index": 60, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 61, + "scheme": "npm", + "gitlab_native": "=0.4.0", + "expected_vers": "vers:npm/0.4.0" + }, + { + "test_index": 62, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 63, + "scheme": "npm", + "gitlab_native": "=1.1.7", + "expected_vers": "vers:npm/1.1.7" + }, + { + "test_index": 64, + "scheme": "npm", + "gitlab_native": "<0.2.6", + "expected_vers": "vers:npm/<0.2.6" + }, + { + "test_index": 65, + "scheme": "npm", + "gitlab_native": "<3.4.6 || >=4.0.0 <4.0.5", + "expected_vers": "vers:npm/<3.4.6|>=4.0.0|<4.0.5" + }, + { + "test_index": 66, + "scheme": "npm", + "gitlab_native": "<3.4.6||>=4.0.0 <4.0.5", + "expected_vers": "vers:npm/<3.4.6|>=4.0.0|<4.0.5" + }, + { + "test_index": 67, + "scheme": "npm", + "gitlab_native": "<3.5.1||>=4.0.0 <=4.1.3||>=5.0.0 <=5.6.1||>=6.0.0 <=6.1.2", + "expected_vers": "vers:npm/<3.5.1|>=4.0.0|<=4.1.3|>=5.0.0|<=5.6.1|>=6.0.0|<=6.1.2" + }, + { + "test_index": 68, + "scheme": "npm", + "gitlab_native": "<0.5.2", + "expected_vers": "vers:npm/<0.5.2" + }, + { + "test_index": 69, + "scheme": "npm", + "gitlab_native": "<0.4.4", + "expected_vers": "vers:npm/<0.4.4" + }, + { + "test_index": 70, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 71, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 72, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 73, + "scheme": "npm", + "gitlab_native": "<=0.2.3", + "expected_vers": "vers:npm/<=0.2.3" + }, + { + "test_index": 74, + "scheme": "npm", + "gitlab_native": "=1.0.3", + "expected_vers": "vers:npm/1.0.3" + }, + { + "test_index": 75, + "scheme": "npm", + "gitlab_native": "<4.2.0", + "expected_vers": "vers:npm/<4.2.0" + }, + { + "test_index": 76, + "scheme": "npm", + "gitlab_native": "<3.0.5", + "expected_vers": "vers:npm/<3.0.5" + }, + { + "test_index": 77, + "scheme": "npm", + "gitlab_native": "< 2.11.2 || >= 3.0.0 < 3.6.4 || >= 4.0.0 < 4.5.7 || >= 5.0.0 < 5.2.1 || >= 6.0.0 < 6.0.5 || >= 6.1.0 < 6.1.6 || >= 6.2.0 < 6.2.5 || >= 6.3.0 < 6.3.3 || >= 6.4.0 < 6.4.2 || >= 7.0.0 < 7.0.2 || >= 7.1.0 < 7.1.2", + "expected_vers": "vers:npm/<2.11.2|>=3.0.0|<3.6.4|>=4.0.0|<4.5.7|>=5.0.0|<5.2.1|>=6.0.0|<6.0.5|>=6.1.0|<6.1.6|>=6.2.0|<6.2.5|>=6.3.0|<6.3.3|>=6.4.0|<6.4.2|>=7.0.0|<7.0.2|>=7.1.0|<7.1.2" + }, + { + "test_index": 78, + "scheme": "npm", + "gitlab_native": "<=0.0.1", + "expected_vers": "vers:npm/<=0.0.1" + }, + { + "test_index": 79, + "scheme": "npm", + "gitlab_native": "<=0.0.3", + "expected_vers": "vers:npm/<=0.0.3" + }, + { + "test_index": 80, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 81, + "scheme": "npm", + "gitlab_native": "<11.0.4", + "expected_vers": "vers:npm/<11.0.4" + }, + { + "test_index": 82, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 83, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 84, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 85, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 86, + "scheme": "npm", + "gitlab_native": "=1.0.6", + "expected_vers": "vers:npm/1.0.6" + }, + { + "test_index": 87, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 88, + "scheme": "npm", + "gitlab_native": "<=0.2.4", + "expected_vers": "vers:npm/<=0.2.4" + }, + { + "test_index": 89, + "scheme": "npm", + "gitlab_native": "<2.0.3", + "expected_vers": "vers:npm/<2.0.3" + }, + { + "test_index": 90, + "scheme": "npm", + "gitlab_native": "<0.2.2", + "expected_vers": "vers:npm/<0.2.2" + }, + { + "test_index": 91, + "scheme": "npm", + "gitlab_native": "=8.0.8", + "expected_vers": "vers:npm/8.0.8" + }, + { + "test_index": 92, + "scheme": "npm", + "gitlab_native": "<0.1.1", + "expected_vers": "vers:npm/<0.1.1" + }, + { + "test_index": 93, + "scheme": "npm", + "gitlab_native": "<=1.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 94, + "scheme": "npm", + "gitlab_native": "<1.14", + "expected_vers": "vers:npm/<1.14.0" + }, + { + "test_index": 95, + "scheme": "npm", + "gitlab_native": "<1.11.10||>=1.12.0 <1.12.8||>=1.13.0 <1.13.7||>=1.14.0 <1.14.6||>=1.15.0 <1.15.3||>=1.16.0 <1.16.2", + "expected_vers": "vers:npm/<1.11.10|>=1.12.0|<1.12.8|>=1.13.0|<1.13.7|>=1.14.0|<1.14.6|>=1.15.0|<1.15.3|>=1.16.0|<1.16.2" + }, + { + "test_index": 96, + "scheme": "npm", + "gitlab_native": "<1.2.0", + "expected_vers": "vers:npm/<1.2.0" + }, + { + "test_index": 97, + "scheme": "npm", + "gitlab_native": "<1.17.0", + "expected_vers": "vers:npm/<1.17.0" + }, + { + "test_index": 98, + "scheme": "npm", + "gitlab_native": "=1.13.0", + "expected_vers": "vers:npm/1.13.0" + }, + { + "test_index": 99, + "scheme": "npm", + "gitlab_native": "=1.13.0||>=1.12.0 <1.12.4||>=1.11.0 <1.11.6||>=1.10.0 <1.10.10", + "expected_vers": "vers:npm/>=1.10.0|<1.10.10|>=1.11.0|<1.11.6|>=1.12.0|<1.12.4|1.13.0" + }, + { + "test_index": 100, + "scheme": "npm", + "gitlab_native": "<=1.13.0", + "expected_vers": "vers:npm/<=1.13.0" + }, + { + "test_index": 101, + "scheme": "npm", + "gitlab_native": "<3.0.3", + "expected_vers": "vers:npm/<3.0.3" + }, + { + "test_index": 102, + "scheme": "npm", + "gitlab_native": "<3.0.1", + "expected_vers": "vers:npm/<3.0.1" + }, + { + "test_index": 103, + "scheme": "npm", + "gitlab_native": "<3.0.1", + "expected_vers": "vers:npm/<3.0.1" + }, + { + "test_index": 104, + "scheme": "npm", + "gitlab_native": "<=0.1.1", + "expected_vers": "vers:npm/<=0.1.1" + }, + { + "test_index": 105, + "scheme": "npm", + "gitlab_native": "<5.2.1", + "expected_vers": "vers:npm/<5.2.1" + }, + { + "test_index": 106, + "scheme": "npm", + "gitlab_native": "=0.7.29||=0.8.0||=1.0.0", + "expected_vers": "vers:npm/0.7.29|0.8.0|1.0.0" + }, + { + "test_index": 107, + "scheme": "npm", + "gitlab_native": "<0.7.22", + "expected_vers": "vers:npm/<0.7.22" + }, + { + "test_index": 108, + "scheme": "npm", + "gitlab_native": "<0.7.23", + "expected_vers": "vers:npm/<0.7.23" + }, + { + "test_index": 109, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 110, + "scheme": "npm", + "gitlab_native": "=0.1.1", + "expected_vers": "vers:npm/0.1.1" + }, + { + "test_index": 111, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 112, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 113, + "scheme": "npm", + "gitlab_native": "=0.1.1", + "expected_vers": "vers:npm/0.1.1" + }, + { + "test_index": 114, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 115, + "scheme": "npm", + "gitlab_native": "=0.1.8", + "expected_vers": "vers:npm/0.1.8" + }, + { + "test_index": 116, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 117, + "scheme": "npm", + "gitlab_native": "<=0.1.1", + "expected_vers": "vers:npm/<=0.1.1" + }, + { + "test_index": 118, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 119, + "scheme": "npm", + "gitlab_native": "=1.0.2", + "expected_vers": "vers:npm/1.0.2" + }, + { + "test_index": 120, + "scheme": "npm", + "gitlab_native": "<=2.0.0", + "expected_vers": "vers:npm/<=2.0.0" + }, + { + "test_index": 121, + "scheme": "npm", + "gitlab_native": "<=5.80.0", + "expected_vers": "vers:npm/<=5.80.0" + }, + { + "test_index": 122, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 123, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 124, + "scheme": "npm", + "gitlab_native": "=2.3.21", + "expected_vers": "vers:npm/2.3.21" + }, + { + "test_index": 125, + "scheme": "npm", + "gitlab_native": "<5.0.2", + "expected_vers": "vers:npm/<5.0.2" + }, + { + "test_index": 126, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 127, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 128, + "scheme": "npm", + "gitlab_native": "<20190301.0.0", + "expected_vers": "vers:npm/<20190301.0.0" + }, + { + "test_index": 129, + "scheme": "npm", + "gitlab_native": "<20200315", + "expected_vers": "vers:npm/<20200315.0.0" + }, + { + "test_index": 130, + "scheme": "npm", + "gitlab_native": "<=3.2.0", + "expected_vers": "vers:npm/<=3.2.0" + }, + { + "test_index": 131, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 132, + "scheme": "npm", + "gitlab_native": "<4.0.1", + "expected_vers": "vers:npm/<4.0.1" + }, + { + "test_index": 133, + "scheme": "npm", + "gitlab_native": "<=1.0.8", + "expected_vers": "vers:npm/<=1.0.8" + }, + { + "test_index": 134, + "scheme": "npm", + "gitlab_native": "<2.1.0", + "expected_vers": "vers:npm/<2.1.0" + }, + { + "test_index": 135, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 136, + "scheme": "npm", + "gitlab_native": "<2.0.0", + "expected_vers": "vers:npm/<2.0.0" + }, + { + "test_index": 137, + "scheme": "npm", + "gitlab_native": "<3.3.0", + "expected_vers": "vers:npm/<3.3.0" + }, + { + "test_index": 138, + "scheme": "npm", + "gitlab_native": "<3.4.2", + "expected_vers": "vers:npm/<3.4.2" + }, + { + "test_index": 139, + "scheme": "npm", + "gitlab_native": "<3.3.0", + "expected_vers": "vers:npm/<3.3.0" + }, + { + "test_index": 140, + "scheme": "npm", + "gitlab_native": "<2.0.1", + "expected_vers": "vers:npm/<2.0.1" + }, + { + "test_index": 141, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 142, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 143, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 144, + "scheme": "npm", + "gitlab_native": "<3.4.0||>=4.0.0 <4.1.2", + "expected_vers": "vers:npm/<3.4.0|>=4.0.0|<4.1.2" + }, + { + "test_index": 145, + "scheme": "npm", + "gitlab_native": "<3.4.0", + "expected_vers": "vers:npm/<3.4.0" + }, + { + "test_index": 146, + "scheme": "npm", + "gitlab_native": "<3.4.0||>=4.0.0 <4.1.2", + "expected_vers": "vers:npm/<3.4.0|>=4.0.0|<4.1.2" + }, + { + "test_index": 147, + "scheme": "npm", + "gitlab_native": "<3.4.0", + "expected_vers": "vers:npm/<3.4.0" + }, + { + "test_index": 148, + "scheme": "npm", + "gitlab_native": "<4.10.7", + "expected_vers": "vers:npm/<4.10.7" + }, + { + "test_index": 149, + "scheme": "npm", + "gitlab_native": "<3.6.0", + "expected_vers": "vers:npm/<3.6.0" + }, + { + "test_index": 150, + "scheme": "npm", + "gitlab_native": "<4.1.0", + "expected_vers": "vers:npm/<4.1.0" + }, + { + "test_index": 151, + "scheme": "npm", + "gitlab_native": "<4.10.3", + "expected_vers": "vers:npm/<4.10.3" + }, + { + "test_index": 152, + "scheme": "npm", + "gitlab_native": "<4.5.0", + "expected_vers": "vers:npm/<4.5.0" + }, + { + "test_index": 153, + "scheme": "npm", + "gitlab_native": "<4.10.4", + "expected_vers": "vers:npm/<4.10.4" + }, + { + "test_index": 154, + "scheme": "npm", + "gitlab_native": "<3.4.1", + "expected_vers": "vers:npm/<3.4.1" + }, + { + "test_index": 155, + "scheme": "npm", + "gitlab_native": "<=4.3.0", + "expected_vers": "vers:npm/<=4.3.0" + }, + { + "test_index": 156, + "scheme": "npm", + "gitlab_native": "<4.5.1", + "expected_vers": "vers:npm/<4.5.1" + }, + { + "test_index": 157, + "scheme": "npm", + "gitlab_native": "<=0.3.13", + "expected_vers": "vers:npm/<=0.3.13" + }, + { + "test_index": 158, + "scheme": "npm", + "gitlab_native": "<=0.3.13", + "expected_vers": "vers:npm/<=0.3.13" + }, + { + "test_index": 159, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 160, + "scheme": "npm", + "gitlab_native": "<=0.9.1", + "expected_vers": "vers:npm/<=0.9.1" + }, + { + "test_index": 161, + "scheme": "npm", + "gitlab_native": "<=3.0.0", + "expected_vers": "vers:npm/<=3.0.0" + }, + { + "test_index": 162, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 163, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 164, + "scheme": "npm", + "gitlab_native": "<1.7.9", + "expected_vers": "vers:npm/<1.7.9" + }, + { + "test_index": 165, + "scheme": "npm", + "gitlab_native": "<1.6.3", + "expected_vers": "vers:npm/<1.6.3" + }, + { + "test_index": 166, + "scheme": "npm", + "gitlab_native": "<1.8.0", + "expected_vers": "vers:npm/<1.8.0" + }, + { + "test_index": 167, + "scheme": "npm", + "gitlab_native": "<1.6.9", + "expected_vers": "vers:npm/<1.6.9" + }, + { + "test_index": 168, + "scheme": "npm", + "gitlab_native": "<1.6.0", + "expected_vers": "vers:npm/<1.6.0" + }, + { + "test_index": 169, + "scheme": "npm", + "gitlab_native": "<1.6.3", + "expected_vers": "vers:npm/<1.6.3" + }, + { + "test_index": 170, + "scheme": "npm", + "gitlab_native": "<1.6.5", + "expected_vers": "vers:npm/<1.6.5" + }, + { + "test_index": 171, + "scheme": "npm", + "gitlab_native": "<1.2.30", + "expected_vers": "vers:npm/<1.2.30" + }, + { + "test_index": 172, + "scheme": "npm", + "gitlab_native": "<1.8.0", + "expected_vers": "vers:npm/<1.8.0" + }, + { + "test_index": 173, + "scheme": "npm", + "gitlab_native": "<1.5.9", + "expected_vers": "vers:npm/<1.5.9" + }, + { + "test_index": 174, + "scheme": "npm", + "gitlab_native": "<=1.4.14", + "expected_vers": "vers:npm/<=1.4.14" + }, + { + "test_index": 175, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 176, + "scheme": "npm", + "gitlab_native": "<=0.2.1", + "expected_vers": "vers:npm/<=0.2.1" + }, + { + "test_index": 177, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 178, + "scheme": "npm", + "gitlab_native": "<2.0.1||>=3.0.0 <4.0.1", + "expected_vers": "vers:npm/<2.0.1|>=3.0.0|<4.0.1" + }, + { + "test_index": 179, + "scheme": "npm", + "gitlab_native": "<2.0.1||>=3.0.0 <3.0.1", + "expected_vers": "vers:npm/<2.0.1|>=3.0.0|<3.0.1" + }, + { + "test_index": 180, + "scheme": "npm", + "gitlab_native": "<3.2.1", + "expected_vers": "vers:npm/<3.2.1" + }, + { + "test_index": 181, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 182, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 183, + "scheme": "npm", + "gitlab_native": "<=1.1.0", + "expected_vers": "vers:npm/<=1.1.0" + }, + { + "test_index": 184, + "scheme": "npm", + "gitlab_native": "<=0.2.0", + "expected_vers": "vers:npm/<=0.2.0" + }, + { + "test_index": 185, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 186, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 187, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 188, + "scheme": "npm", + "gitlab_native": "<0.0.19", + "expected_vers": "vers:npm/<0.0.19" + }, + { + "test_index": 189, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 190, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 191, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 192, + "scheme": "npm", + "gitlab_native": "=4.0.11", + "expected_vers": "vers:npm/4.0.11" + }, + { + "test_index": 193, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 194, + "scheme": "npm", + "gitlab_native": "<= 0.0.1", + "expected_vers": "vers:npm/<=0.0.1" + }, + { + "test_index": 195, + "scheme": "npm", + "gitlab_native": "<6.0.0", + "expected_vers": "vers:npm/<6.0.0" + }, + { + "test_index": 196, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 197, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 198, + "scheme": "npm", + "gitlab_native": "<=0.0.2", + "expected_vers": "vers:npm/<=0.0.2" + }, + { + "test_index": 199, + "scheme": "npm", + "gitlab_native": "<0.0.3", + "expected_vers": "vers:npm/<0.0.3" + }, + { + "test_index": 200, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 201, + "scheme": "npm", + "gitlab_native": "<2015.4.18-a", + "expected_vers": "vers:npm/<2015.4.18-a" + }, + { + "test_index": 202, + "scheme": "npm", + "gitlab_native": "<4.80.0", + "expected_vers": "vers:npm/<4.80.0" + }, + { + "test_index": 203, + "scheme": "npm", + "gitlab_native": "<4.80.0", + "expected_vers": "vers:npm/<4.80.0" + }, + { + "test_index": 204, + "scheme": "npm", + "gitlab_native": "<4.79.0", + "expected_vers": "vers:npm/<4.79.0" + }, + { + "test_index": 205, + "scheme": "npm", + "gitlab_native": "<4.72.2", + "expected_vers": "vers:npm/<4.72.2" + }, + { + "test_index": 206, + "scheme": "npm", + "gitlab_native": "<4.73.1", + "expected_vers": "vers:npm/<4.73.1" + }, + { + "test_index": 207, + "scheme": "npm", + "gitlab_native": "<3.1.3", + "expected_vers": "vers:npm/<3.1.3" + }, + { + "test_index": 208, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 209, + "scheme": "npm", + "gitlab_native": "<9.1.0", + "expected_vers": "vers:npm/<9.1.0" + }, + { + "test_index": 210, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 211, + "scheme": "npm", + "gitlab_native": "<0.4.0", + "expected_vers": "vers:npm/<0.4.0" + }, + { + "test_index": 212, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 213, + "scheme": "npm", + "gitlab_native": "<0.9.7", + "expected_vers": "vers:npm/<0.9.7" + }, + { + "test_index": 214, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 215, + "scheme": "npm", + "gitlab_native": "<2.1.1", + "expected_vers": "vers:npm/<2.1.1" + }, + { + "test_index": 216, + "scheme": "npm", + "gitlab_native": "<=0.5.0", + "expected_vers": "vers:npm/<=0.5.0" + }, + { + "test_index": 217, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 218, + "scheme": "npm", + "gitlab_native": "<=0.0.11", + "expected_vers": "vers:npm/<=0.0.11" + }, + { + "test_index": 219, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 220, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 221, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 222, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 223, + "scheme": "npm", + "gitlab_native": "<=0.0.1", + "expected_vers": "vers:npm/<=0.0.1" + }, + { + "test_index": 224, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 225, + "scheme": "npm", + "gitlab_native": "<=0.29.0", + "expected_vers": "vers:npm/<=0.29.0" + }, + { + "test_index": 226, + "scheme": "npm", + "gitlab_native": "<=0.29.0", + "expected_vers": "vers:npm/<=0.29.0" + }, + { + "test_index": 227, + "scheme": "npm", + "gitlab_native": "=1.1.6", + "expected_vers": "vers:npm/1.1.6" + }, + { + "test_index": 228, + "scheme": "npm", + "gitlab_native": "<=0.0.2", + "expected_vers": "vers:npm/<=0.0.2" + }, + { + "test_index": 229, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 230, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 231, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 232, + "scheme": "npm", + "gitlab_native": "<=0.0.4", + "expected_vers": "vers:npm/<=0.0.4" + }, + { + "test_index": 233, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 234, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 235, + "scheme": "npm", + "gitlab_native": "=0.1.1", + "expected_vers": "vers:npm/0.1.1" + }, + { + "test_index": 236, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 237, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 238, + "scheme": "npm", + "gitlab_native": "<5.65.7", + "expected_vers": "vers:npm/<5.65.7" + }, + { + "test_index": 239, + "scheme": "npm", + "gitlab_native": "<0.35.0", + "expected_vers": "vers:npm/<0.35.0" + }, + { + "test_index": 240, + "scheme": "npm", + "gitlab_native": "=0.42.0", + "expected_vers": "vers:npm/0.42.0" + }, + { + "test_index": 241, + "scheme": "npm", + "gitlab_native": "<1.3.4||>2.0.0 <2.0.4", + "expected_vers": "vers:npm/<1.3.4|>2.0.0|<2.0.4" + }, + { + "test_index": 242, + "scheme": "npm", + "gitlab_native": "<0.6.1", + "expected_vers": "vers:npm/<0.6.1" + }, + { + "test_index": 243, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 244, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 245, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 246, + "scheme": "npm", + "gitlab_native": "<=3.9.1||=3.10.0", + "expected_vers": "vers:npm/<=3.9.1|3.10.0" + }, + { + "test_index": 247, + "scheme": "npm", + "gitlab_native": "<6.1.0", + "expected_vers": "vers:npm/<6.1.0" + }, + { + "test_index": 248, + "scheme": "npm", + "gitlab_native": "<6.1.0", + "expected_vers": "vers:npm/<6.1.0" + }, + { + "test_index": 249, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 250, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 251, + "scheme": "npm", + "gitlab_native": "<=1.1.3", + "expected_vers": "vers:npm/<=1.1.3" + }, + { + "test_index": 252, + "scheme": "npm", + "gitlab_native": "<=1.1.3", + "expected_vers": "vers:npm/<=1.1.3" + }, + { + "test_index": 253, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 254, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 255, + "scheme": "npm", + "gitlab_native": "<1.0.2", + "expected_vers": "vers:npm/<1.0.2" + }, + { + "test_index": 256, + "scheme": "npm", + "gitlab_native": "<1.2.4", + "expected_vers": "vers:npm/<1.2.4" + }, + { + "test_index": 257, + "scheme": "npm", + "gitlab_native": "<1.2.4", + "expected_vers": "vers:npm/<1.2.4" + }, + { + "test_index": 258, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 259, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 260, + "scheme": "npm", + "gitlab_native": "=0.1.0", + "expected_vers": "vers:npm/0.1.0" + }, + { + "test_index": 261, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 262, + "scheme": "npm", + "gitlab_native": "<=2.8.17-beta.6", + "expected_vers": "vers:npm/<=2.8.17-beta.6" + }, + { + "test_index": 263, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 264, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 265, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 266, + "scheme": "npm", + "gitlab_native": "<=5.84.0", + "expected_vers": "vers:npm/<=5.84.0" + }, + { + "test_index": 267, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 268, + "scheme": "npm", + "gitlab_native": "<6.2.6", + "expected_vers": "vers:npm/<6.2.6" + }, + { + "test_index": 269, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 270, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 271, + "scheme": "npm", + "gitlab_native": "<6.1.0", + "expected_vers": "vers:npm/<6.1.0" + }, + { + "test_index": 272, + "scheme": "npm", + "gitlab_native": "<7.2.2||>=8.0.0 <8.1.1", + "expected_vers": "vers:npm/<7.2.2|>=8.0.0|<8.1.1" + }, + { + "test_index": 273, + "scheme": "npm", + "gitlab_native": "<9.0.0", + "expected_vers": "vers:npm/<9.0.0" + }, + { + "test_index": 274, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 275, + "scheme": "npm", + "gitlab_native": "<1.0.0", + "expected_vers": "vers:npm/<1.0.0" + }, + { + "test_index": 276, + "scheme": "npm", + "gitlab_native": "<=0.9.1", + "expected_vers": "vers:npm/<=0.9.1" + }, + { + "test_index": 277, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 278, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 279, + "scheme": "npm", + "gitlab_native": "=0.2.0", + "expected_vers": "vers:npm/0.2.0" + }, + { + "test_index": 280, + "scheme": "npm", + "gitlab_native": "<1.2.6", + "expected_vers": "vers:npm/<1.2.6" + }, + { + "test_index": 281, + "scheme": "npm", + "gitlab_native": "<1.2.2", + "expected_vers": "vers:npm/<1.2.2" + }, + { + "test_index": 282, + "scheme": "npm", + "gitlab_native": "<1.0.3", + "expected_vers": "vers:npm/<1.0.3" + }, + { + "test_index": 283, + "scheme": "npm", + "gitlab_native": "<0.4.0", + "expected_vers": "vers:npm/<0.4.0" + }, + { + "test_index": 284, + "scheme": "npm", + "gitlab_native": "<0.45.3", + "expected_vers": "vers:npm/<0.45.3" + }, + { + "test_index": 285, + "scheme": "npm", + "gitlab_native": "<0.8.0", + "expected_vers": "vers:npm/<0.8.0" + }, + { + "test_index": 286, + "scheme": "npm", + "gitlab_native": "<=0.12.0", + "expected_vers": "vers:npm/<=0.12.0" + }, + { + "test_index": 287, + "scheme": "npm", + "gitlab_native": "<0.8.2", + "expected_vers": "vers:npm/<0.8.2" + }, + { + "test_index": 288, + "scheme": "npm", + "gitlab_native": "<2.4.2", + "expected_vers": "vers:npm/<2.4.2" + }, + { + "test_index": 289, + "scheme": "npm", + "gitlab_native": "<2.4.2", + "expected_vers": "vers:npm/<2.4.2" + }, + { + "test_index": 290, + "scheme": "npm", + "gitlab_native": "<4.1.3", + "expected_vers": "vers:npm/<4.1.3" + }, + { + "test_index": 291, + "scheme": "npm", + "gitlab_native": "<4.1.3", + "expected_vers": "vers:npm/<4.1.3" + }, + { + "test_index": 292, + "scheme": "npm", + "gitlab_native": "<=0.1.9", + "expected_vers": "vers:npm/<=0.1.9" + }, + { + "test_index": 293, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 294, + "scheme": "npm", + "gitlab_native": "<=5.4.0", + "expected_vers": "vers:npm/<=5.4.0" + }, + { + "test_index": 295, + "scheme": "npm", + "gitlab_native": "<2.0.1", + "expected_vers": "vers:npm/<2.0.1" + }, + { + "test_index": 296, + "scheme": "npm", + "gitlab_native": "<1.1.82", + "expected_vers": "vers:npm/<1.1.82" + }, + { + "test_index": 297, + "scheme": "npm", + "gitlab_native": "<1.1.82", + "expected_vers": "vers:npm/<1.1.82" + }, + { + "test_index": 298, + "scheme": "npm", + "gitlab_native": "<=1.2.1", + "expected_vers": "vers:npm/<=1.2.1" + }, + { + "test_index": 299, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 300, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 301, + "scheme": "npm", + "gitlab_native": "=0.2.0", + "expected_vers": "vers:npm/0.2.0" + }, + { + "test_index": 302, + "scheme": "npm", + "gitlab_native": "<0.2.3", + "expected_vers": "vers:npm/<0.2.3" + }, + { + "test_index": 303, + "scheme": "npm", + "gitlab_native": "<=0.2.3", + "expected_vers": "vers:npm/<=0.2.3" + }, + { + "test_index": 304, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 305, + "scheme": "npm", + "gitlab_native": "<2.0.3", + "expected_vers": "vers:npm/<2.0.3" + }, + { + "test_index": 306, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 307, + "scheme": "npm", + "gitlab_native": ">=1.0.0 <=1.0.1||=1.1.0", + "expected_vers": "vers:npm/>=1.0.0|<=1.0.1|1.1.0" + }, + { + "test_index": 308, + "scheme": "npm", + "gitlab_native": "<16.8.2||>=17.0.0 <17.9.2||>=18.0.0 <18.4.1||>=19.0.0 <19.1.1", + "expected_vers": "vers:npm/<16.8.2|>=17.0.0|<17.9.2|>=18.0.0|<18.4.1|>=19.0.0|<19.1.1" + }, + { + "test_index": 309, + "scheme": "npm", + "gitlab_native": "<2.1.1", + "expected_vers": "vers:npm/<2.1.1" + }, + { + "test_index": 310, + "scheme": "npm", + "gitlab_native": "=5.1.1", + "expected_vers": "vers:npm/5.1.1" + }, + { + "test_index": 311, + "scheme": "npm", + "gitlab_native": "<5.1.2", + "expected_vers": "vers:npm/<5.1.2" + }, + { + "test_index": 312, + "scheme": "npm", + "gitlab_native": "<5.1.1", + "expected_vers": "vers:npm/<5.1.1" + }, + { + "test_index": 313, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 314, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 315, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 316, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 317, + "scheme": "npm", + "gitlab_native": "=3.0.0", + "expected_vers": "vers:npm/3.0.0" + }, + { + "test_index": 318, + "scheme": "npm", + "gitlab_native": "<0.3.16", + "expected_vers": "vers:npm/<0.3.16" + }, + { + "test_index": 319, + "scheme": "npm", + "gitlab_native": "<0.3.16", + "expected_vers": "vers:npm/<0.3.16" + }, + { + "test_index": 320, + "scheme": "npm", + "gitlab_native": "<=4.0.0", + "expected_vers": "vers:npm/<=4.0.0" + }, + { + "test_index": 321, + "scheme": "npm", + "gitlab_native": "<1.0.2", + "expected_vers": "vers:npm/<1.0.2" + }, + { + "test_index": 322, + "scheme": "npm", + "gitlab_native": "<4.0.0", + "expected_vers": "vers:npm/<4.0.0" + }, + { + "test_index": 323, + "scheme": "npm", + "gitlab_native": "<=0.3.22||=4.0.0", + "expected_vers": "vers:npm/<=0.3.22|4.0.0" + }, + { + "test_index": 324, + "scheme": "npm", + "gitlab_native": "<4.0.0", + "expected_vers": "vers:npm/<4.0.0" + }, + { + "test_index": 325, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 326, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 327, + "scheme": "npm", + "gitlab_native": "<=3.3.1", + "expected_vers": "vers:npm/<=3.3.1" + }, + { + "test_index": 328, + "scheme": "npm", + "gitlab_native": "<2.14.2", + "expected_vers": "vers:npm/<2.14.2" + }, + { + "test_index": 329, + "scheme": "npm", + "gitlab_native": "<=0.0.5", + "expected_vers": "vers:npm/<=0.0.5" + }, + { + "test_index": 330, + "scheme": "npm", + "gitlab_native": "<0.2.1", + "expected_vers": "vers:npm/<0.2.1" + }, + { + "test_index": 331, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 332, + "scheme": "npm", + "gitlab_native": "<=0.8.6", + "expected_vers": "vers:npm/<=0.8.6" + }, + { + "test_index": 333, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 334, + "scheme": "npm", + "gitlab_native": "<3.15.7", + "expected_vers": "vers:npm/<3.15.7" + }, + { + "test_index": 335, + "scheme": "npm", + "gitlab_native": "<3.15.7", + "expected_vers": "vers:npm/<3.15.7" + }, + { + "test_index": 336, + "scheme": "npm", + "gitlab_native": "<=5.2.1", + "expected_vers": "vers:npm/<=5.2.1" + }, + { + "test_index": 337, + "scheme": "npm", + "gitlab_native": "<5.2.2", + "expected_vers": "vers:npm/<5.2.2" + }, + { + "test_index": 338, + "scheme": "npm", + "gitlab_native": "<0.26.0", + "expected_vers": "vers:npm/<0.26.0" + }, + { + "test_index": 339, + "scheme": "npm", + "gitlab_native": "<2.2.7", + "expected_vers": "vers:npm/<2.2.7" + }, + { + "test_index": 340, + "scheme": "npm", + "gitlab_native": "<2.2.0", + "expected_vers": "vers:npm/<2.2.0" + }, + { + "test_index": 341, + "scheme": "npm", + "gitlab_native": "<6.11.4", + "expected_vers": "vers:npm/<6.11.4" + }, + { + "test_index": 342, + "scheme": "npm", + "gitlab_native": "<0.0.18", + "expected_vers": "vers:npm/<0.0.18" + }, + { + "test_index": 343, + "scheme": "npm", + "gitlab_native": "<0.0.18", + "expected_vers": "vers:npm/<0.0.18" + }, + { + "test_index": 344, + "scheme": "npm", + "gitlab_native": "=1.0.3", + "expected_vers": "vers:npm/1.0.3" + }, + { + "test_index": 345, + "scheme": "npm", + "gitlab_native": "<1.0.3", + "expected_vers": "vers:npm/<1.0.3" + }, + { + "test_index": 346, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 347, + "scheme": "npm", + "gitlab_native": "<=1.4.0", + "expected_vers": "vers:npm/<=1.4.0" + }, + { + "test_index": 348, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 349, + "scheme": "npm", + "gitlab_native": "<=0.0.1", + "expected_vers": "vers:npm/<=0.0.1" + }, + { + "test_index": 350, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 351, + "scheme": "npm", + "gitlab_native": "=1.1.0", + "expected_vers": "vers:npm/1.1.0" + }, + { + "test_index": 352, + "scheme": "npm", + "gitlab_native": "<=1.0.2||<2.3.10", + "expected_vers": "vers:npm/<=1.0.2|<2.3.10" + }, + { + "test_index": 353, + "scheme": "npm", + "gitlab_native": "<2.3.10", + "expected_vers": "vers:npm/<2.3.10" + }, + { + "test_index": 354, + "scheme": "npm", + "gitlab_native": "=2.8.1", + "expected_vers": "vers:npm/2.8.1" + }, + { + "test_index": 355, + "scheme": "npm", + "gitlab_native": "<=3.0.0", + "expected_vers": "vers:npm/<=3.0.0" + }, + { + "test_index": 356, + "scheme": "npm", + "gitlab_native": "<2.1.2", + "expected_vers": "vers:npm/<2.1.2" + }, + { + "test_index": 357, + "scheme": "npm", + "gitlab_native": "<2.1.1", + "expected_vers": "vers:npm/<2.1.1" + }, + { + "test_index": 358, + "scheme": "npm", + "gitlab_native": "=1.1.8", + "expected_vers": "vers:npm/1.1.8" + }, + { + "test_index": 359, + "scheme": "npm", + "gitlab_native": "=0.1.0", + "expected_vers": "vers:npm/0.1.0" + }, + { + "test_index": 360, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 361, + "scheme": "npm", + "gitlab_native": "<=1.0.3", + "expected_vers": "vers:npm/<=1.0.3" + }, + { + "test_index": 362, + "scheme": "npm", + "gitlab_native": "<1.0.4", + "expected_vers": "vers:npm/<1.0.4" + }, + { + "test_index": 363, + "scheme": "npm", + "gitlab_native": "<1.14.6", + "expected_vers": "vers:npm/<1.14.6" + }, + { + "test_index": 364, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 365, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 366, + "scheme": "npm", + "gitlab_native": "<1.1.7||>=2.0.0 <2.0.2", + "expected_vers": "vers:npm/<1.1.7|>=2.0.0|<2.0.2" + }, + { + "test_index": 367, + "scheme": "npm", + "gitlab_native": "<=1.4.3", + "expected_vers": "vers:npm/<=1.4.3" + }, + { + "test_index": 368, + "scheme": "npm", + "gitlab_native": "<1.5.1", + "expected_vers": "vers:npm/<1.5.1" + }, + { + "test_index": 369, + "scheme": "npm", + "gitlab_native": "<1.0.5", + "expected_vers": "vers:npm/<1.0.5" + }, + { + "test_index": 370, + "scheme": "npm", + "gitlab_native": "=1.7.5", + "expected_vers": "vers:npm/1.7.5" + }, + { + "test_index": 371, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 372, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 373, + "scheme": "npm", + "gitlab_native": "<=0.9.0", + "expected_vers": "vers:npm/<=0.9.0" + }, + { + "test_index": 374, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 375, + "scheme": "npm", + "gitlab_native": "<1.1.3", + "expected_vers": "vers:npm/<1.1.3" + }, + { + "test_index": 376, + "scheme": "npm", + "gitlab_native": "=1.3.3", + "expected_vers": "vers:npm/1.3.3" + }, + { + "test_index": 377, + "scheme": "npm", + "gitlab_native": "=1.4.14", + "expected_vers": "vers:npm/1.4.14" + }, + { + "test_index": 378, + "scheme": "npm", + "gitlab_native": "<1.4.15", + "expected_vers": "vers:npm/<1.4.15" + }, + { + "test_index": 379, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 380, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 381, + "scheme": "npm", + "gitlab_native": "<3.2.5", + "expected_vers": "vers:npm/<3.2.5" + }, + { + "test_index": 382, + "scheme": "npm", + "gitlab_native": "<=3.0.0-beta.17.7", + "expected_vers": "vers:npm/<=3.0.0-beta.17.7" + }, + { + "test_index": 383, + "scheme": "npm", + "gitlab_native": "<3.2.5", + "expected_vers": "vers:npm/<3.2.5" + }, + { + "test_index": 384, + "scheme": "npm", + "gitlab_native": "<=1.6.4||=3.0.0", + "expected_vers": "vers:npm/<=1.6.4|3.0.0" + }, + { + "test_index": 385, + "scheme": "npm", + "gitlab_native": "<4.1.0", + "expected_vers": "vers:npm/<4.1.0" + }, + { + "test_index": 386, + "scheme": "npm", + "gitlab_native": "<3.0.2", + "expected_vers": "vers:npm/<3.0.2" + }, + { + "test_index": 387, + "scheme": "npm", + "gitlab_native": "<=3.6.0", + "expected_vers": "vers:npm/<=3.6.0" + }, + { + "test_index": 388, + "scheme": "npm", + "gitlab_native": "<3.2.5", + "expected_vers": "vers:npm/<3.2.5" + }, + { + "test_index": 389, + "scheme": "npm", + "gitlab_native": "<3.0.0-beta.17.8", + "expected_vers": "vers:npm/<3.0.0-beta.17.8" + }, + { + "test_index": 390, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 391, + "scheme": "npm", + "gitlab_native": "<4.7.0", + "expected_vers": "vers:npm/<4.7.0" + }, + { + "test_index": 392, + "scheme": "npm", + "gitlab_native": "<=1.0.54", + "expected_vers": "vers:npm/<=1.0.54" + }, + { + "test_index": 393, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 394, + "scheme": "npm", + "gitlab_native": "<=0.1.1", + "expected_vers": "vers:npm/<=0.1.1" + }, + { + "test_index": 395, + "scheme": "npm", + "gitlab_native": "<1.4.1", + "expected_vers": "vers:npm/<1.4.1" + }, + { + "test_index": 396, + "scheme": "npm", + "gitlab_native": "<1.4.2", + "expected_vers": "vers:npm/<1.4.2" + }, + { + "test_index": 397, + "scheme": "npm", + "gitlab_native": "<1.4.2", + "expected_vers": "vers:npm/<1.4.2" + }, + { + "test_index": 398, + "scheme": "npm", + "gitlab_native": "<4.4.6", + "expected_vers": "vers:npm/<4.4.6" + }, + { + "test_index": 399, + "scheme": "npm", + "gitlab_native": "<=2.4.2", + "expected_vers": "vers:npm/<=2.4.2" + }, + { + "test_index": 400, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 401, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 402, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 403, + "scheme": "npm", + "gitlab_native": "<=0.1.1", + "expected_vers": "vers:npm/<=0.1.1" + }, + { + "test_index": 404, + "scheme": "npm", + "gitlab_native": "<5.0.0", + "expected_vers": "vers:npm/<5.0.0" + }, + { + "test_index": 405, + "scheme": "npm", + "gitlab_native": "<=2.2.0", + "expected_vers": "vers:npm/<=2.2.0" + }, + { + "test_index": 406, + "scheme": "npm", + "gitlab_native": "<0.125.0", + "expected_vers": "vers:npm/<0.125.0" + }, + { + "test_index": 407, + "scheme": "npm", + "gitlab_native": "<=3.1.1", + "expected_vers": "vers:npm/<=3.1.1" + }, + { + "test_index": 408, + "scheme": "npm", + "gitlab_native": "=0.2.1", + "expected_vers": "vers:npm/0.2.1" + }, + { + "test_index": 409, + "scheme": "npm", + "gitlab_native": "<8.13.8", + "expected_vers": "vers:npm/<8.13.8" + }, + { + "test_index": 410, + "scheme": "npm", + "gitlab_native": "<8.2.3", + "expected_vers": "vers:npm/<8.2.3" + }, + { + "test_index": 411, + "scheme": "npm", + "gitlab_native": "<8.2.3", + "expected_vers": "vers:npm/<8.2.3" + }, + { + "test_index": 412, + "scheme": "npm", + "gitlab_native": "<8.11.0", + "expected_vers": "vers:npm/<8.11.0" + }, + { + "test_index": 413, + "scheme": "npm", + "gitlab_native": "<2.0.0", + "expected_vers": "vers:npm/<2.0.0" + }, + { + "test_index": 414, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 415, + "scheme": "npm", + "gitlab_native": "<1.2.3", + "expected_vers": "vers:npm/<1.2.3" + }, + { + "test_index": 416, + "scheme": "npm", + "gitlab_native": "<5.0.0", + "expected_vers": "vers:npm/<5.0.0" + }, + { + "test_index": 417, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 418, + "scheme": "npm", + "gitlab_native": ">=3.0.0 <3.10.0||=3.10.2", + "expected_vers": "vers:npm/>=3.0.0|<3.10.0|3.10.2" + }, + { + "test_index": 419, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 420, + "scheme": "npm", + "gitlab_native": "<6.15.1", + "expected_vers": "vers:npm/<6.15.1" + }, + { + "test_index": 421, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 422, + "scheme": "npm", + "gitlab_native": "<1.0.12", + "expected_vers": "vers:npm/<1.0.12" + }, + { + "test_index": 423, + "scheme": "npm", + "gitlab_native": "<3.24.0", + "expected_vers": "vers:npm/<3.24.0" + }, + { + "test_index": 424, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 425, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 426, + "scheme": "npm", + "gitlab_native": "<1.1.4", + "expected_vers": "vers:npm/<1.1.4" + }, + { + "test_index": 427, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 428, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 429, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 430, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 431, + "scheme": "npm", + "gitlab_native": "<3.1.1", + "expected_vers": "vers:npm/<3.1.1" + }, + { + "test_index": 432, + "scheme": "npm", + "gitlab_native": "<1.5.2", + "expected_vers": "vers:npm/<1.5.2" + }, + { + "test_index": 433, + "scheme": "npm", + "gitlab_native": "=8.4.3", + "expected_vers": "vers:npm/8.4.3" + }, + { + "test_index": 434, + "scheme": "npm", + "gitlab_native": "<2.19.6||>=3.0.0 <3.1.2||>=4.0.0 <4.3.4", + "expected_vers": "vers:npm/<2.19.6|>=3.0.0|<3.1.2|>=4.0.0|<4.3.4" + }, + { + "test_index": 435, + "scheme": "npm", + "gitlab_native": "<4.4.0", + "expected_vers": "vers:npm/<4.4.0" + }, + { + "test_index": 436, + "scheme": "npm", + "gitlab_native": "<2.0.1", + "expected_vers": "vers:npm/<2.0.1" + }, + { + "test_index": 437, + "scheme": "npm", + "gitlab_native": "<2.0.0", + "expected_vers": "vers:npm/<2.0.0" + }, + { + "test_index": 438, + "scheme": "npm", + "gitlab_native": "<=2.3.0", + "expected_vers": "vers:npm/<=2.3.0" + }, + { + "test_index": 439, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 440, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 441, + "scheme": "npm", + "gitlab_native": "<=0.0.3", + "expected_vers": "vers:npm/<=0.0.3" + }, + { + "test_index": 442, + "scheme": "npm", + "gitlab_native": "=0.0.3", + "expected_vers": "vers:npm/0.0.3" + }, + { + "test_index": 443, + "scheme": "npm", + "gitlab_native": "<2.10.0", + "expected_vers": "vers:npm/<2.10.0" + }, + { + "test_index": 444, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 445, + "scheme": "npm", + "gitlab_native": "<0.4.0", + "expected_vers": "vers:npm/<0.4.0" + }, + { + "test_index": 446, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 447, + "scheme": "npm", + "gitlab_native": "<=1.0.1", + "expected_vers": "vers:npm/<=1.0.1" + }, + { + "test_index": 448, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 449, + "scheme": "npm", + "gitlab_native": "<=0.1.8", + "expected_vers": "vers:npm/<=0.1.8" + }, + { + "test_index": 450, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 451, + "scheme": "npm", + "gitlab_native": "<=1.3.1", + "expected_vers": "vers:npm/<=1.3.1" + }, + { + "test_index": 452, + "scheme": "npm", + "gitlab_native": "<2.2.4", + "expected_vers": "vers:npm/<2.2.4" + }, + { + "test_index": 453, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 454, + "scheme": "npm", + "gitlab_native": "<1.7.0", + "expected_vers": "vers:npm/<1.7.0" + }, + { + "test_index": 455, + "scheme": "npm", + "gitlab_native": "<0.4.2", + "expected_vers": "vers:npm/<0.4.2" + }, + { + "test_index": 456, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 457, + "scheme": "npm", + "gitlab_native": "<=0.7.0", + "expected_vers": "vers:npm/<=0.7.0" + }, + { + "test_index": 458, + "scheme": "npm", + "gitlab_native": "<1.0.0", + "expected_vers": "vers:npm/<1.0.0" + }, + { + "test_index": 459, + "scheme": "npm", + "gitlab_native": "<1.0.0", + "expected_vers": "vers:npm/<1.0.0" + }, + { + "test_index": 460, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 461, + "scheme": "npm", + "gitlab_native": "<2.0.3", + "expected_vers": "vers:npm/<2.0.3" + }, + { + "test_index": 462, + "scheme": "npm", + "gitlab_native": "<3.2.5", + "expected_vers": "vers:npm/<3.2.5" + }, + { + "test_index": 463, + "scheme": "npm", + "gitlab_native": "=5.0.1", + "expected_vers": "vers:npm/5.0.1" + }, + { + "test_index": 464, + "scheme": "npm", + "gitlab_native": "=5.0.2", + "expected_vers": "vers:npm/5.0.2" + }, + { + "test_index": 465, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 466, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 467, + "scheme": "npm", + "gitlab_native": "<2.0.1", + "expected_vers": "vers:npm/<2.0.1" + }, + { + "test_index": 468, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 469, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 470, + "scheme": "npm", + "gitlab_native": "<1.0.1", + "expected_vers": "vers:npm/<1.0.1" + }, + { + "test_index": 471, + "scheme": "npm", + "gitlab_native": "<1.0.1", + "expected_vers": "vers:npm/<1.0.1" + }, + { + "test_index": 472, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 473, + "scheme": "npm", + "gitlab_native": "<=0.9.73", + "expected_vers": "vers:npm/<=0.9.73" + }, + { + "test_index": 474, + "scheme": "npm", + "gitlab_native": "=1.0.0", + "expected_vers": "vers:npm/1.0.0" + }, + { + "test_index": 475, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 476, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 477, + "scheme": "npm", + "gitlab_native": "<=2.0.0", + "expected_vers": "vers:npm/<=2.0.0" + }, + { + "test_index": 478, + "scheme": "npm", + "gitlab_native": "<1.5.1", + "expected_vers": "vers:npm/<1.5.1" + }, + { + "test_index": 479, + "scheme": "npm", + "gitlab_native": "<1.6.0", + "expected_vers": "vers:npm/<1.6.0" + }, + { + "test_index": 480, + "scheme": "npm", + "gitlab_native": "<1.5.3", + "expected_vers": "vers:npm/<1.5.3" + }, + { + "test_index": 481, + "scheme": "npm", + "gitlab_native": "<1.5.3", + "expected_vers": "vers:npm/<1.5.3" + }, + { + "test_index": 482, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 483, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 484, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 485, + "scheme": "npm", + "gitlab_native": "<1.4.1", + "expected_vers": "vers:npm/<1.4.1" + }, + { + "test_index": 486, + "scheme": "npm", + "gitlab_native": "<1.5.8", + "expected_vers": "vers:npm/<1.5.8" + }, + { + "test_index": 487, + "scheme": "npm", + "gitlab_native": "<1.2.0", + "expected_vers": "vers:npm/<1.2.0" + }, + { + "test_index": 488, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 489, + "scheme": "npm", + "gitlab_native": "<1.2.1", + "expected_vers": "vers:npm/<1.2.1" + }, + { + "test_index": 490, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 491, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 492, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 493, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 494, + "scheme": "npm", + "gitlab_native": "<=2.1.1", + "expected_vers": "vers:npm/<=2.1.1" + }, + { + "test_index": 495, + "scheme": "npm", + "gitlab_native": "<0.26.0", + "expected_vers": "vers:npm/<0.26.0" + }, + { + "test_index": 496, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 497, + "scheme": "npm", + "gitlab_native": "<4.0.3||>=4.1.0 <4.1.3||>=4.2.0 <4.2.1||>=4.3.0 <4.3.1", + "expected_vers": "vers:npm/<4.0.3|>=4.1.0|<4.1.3|>=4.2.0|<4.2.1|>=4.3.0|<4.3.1" + }, + { + "test_index": 498, + "scheme": "npm", + "gitlab_native": "<=1.0.1", + "expected_vers": "vers:npm/<=1.0.1" + }, + { + "test_index": 499, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 500, + "scheme": "npm", + "gitlab_native": "<=2.0.11", + "expected_vers": "vers:npm/<=2.0.11" + }, + { + "test_index": 501, + "scheme": "npm", + "gitlab_native": "<2.0.15", + "expected_vers": "vers:npm/<2.0.15" + }, + { + "test_index": 502, + "scheme": "npm", + "gitlab_native": "<2.0.12", + "expected_vers": "vers:npm/<2.0.12" + }, + { + "test_index": 503, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 504, + "scheme": "npm", + "gitlab_native": "<=1.0.0", + "expected_vers": "vers:npm/<=1.0.0" + }, + { + "test_index": 505, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 506, + "scheme": "npm", + "gitlab_native": "=1.2.6", + "expected_vers": "vers:npm/1.2.6" + }, + { + "test_index": 507, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 508, + "scheme": "npm", + "gitlab_native": "<=0.1.11", + "expected_vers": "vers:npm/<=0.1.11" + }, + { + "test_index": 509, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 510, + "scheme": "npm", + "gitlab_native": "<1.0.8", + "expected_vers": "vers:npm/<1.0.8" + }, + { + "test_index": 511, + "scheme": "npm", + "gitlab_native": "<1.2.6", + "expected_vers": "vers:npm/<1.2.6" + }, + { + "test_index": 512, + "scheme": "npm", + "gitlab_native": "<4.0.5||>=5.0.0 <8.1.1", + "expected_vers": "vers:npm/<4.0.5|>=5.0.0|<8.1.1" + }, + { + "test_index": 513, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 514, + "scheme": "npm", + "gitlab_native": "=0.1.1", + "expected_vers": "vers:npm/0.1.1" + }, + { + "test_index": 515, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 516, + "scheme": "npm", + "gitlab_native": "<=3.2.0", + "expected_vers": "vers:npm/<=3.2.0" + }, + { + "test_index": 517, + "scheme": "npm", + "gitlab_native": "<=3.2.0", + "expected_vers": "vers:npm/<=3.2.0" + }, + { + "test_index": 518, + "scheme": "npm", + "gitlab_native": ">=0.0.0-alpha", + "expected_vers": "vers:npm/>=0.0.0-alpha" + }, + { + "test_index": 519, + "scheme": "npm", + "gitlab_native": "<1.4.0", + "expected_vers": "vers:npm/<1.4.0" + }, + { + "test_index": 520, + "scheme": "npm", + "gitlab_native": "<=0.2.4", + "expected_vers": "vers:npm/<=0.2.4" + }, + { + "test_index": 521, + "scheme": "npm", + "gitlab_native": "<0.2.4", + "expected_vers": "vers:npm/<0.2.4" + }, + { + "test_index": 522, + "scheme": "npm", + "gitlab_native": "<0.2.4", + "expected_vers": "vers:npm/<0.2.4" + }, + { + "test_index": 523, + "scheme": "npm", + "gitlab_native": "<1.4.1", + "expected_vers": "vers:npm/<1.4.1" + }, + { + "test_index": 524, + "scheme": "npm", + "gitlab_native": ">=0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 525, + "scheme": "npm", + "gitlab_native": "<1.0.12", + "expected_vers": "vers:npm/<1.0.12" + }, + { + "test_index": 526, + "scheme": "npm", + "gitlab_native": "<3.1.0", + "expected_vers": "vers:npm/<3.1.0" + }, + { + "test_index": 527, + "scheme": "npm", + "gitlab_native": "<3.0.0", + "expected_vers": "vers:npm/<3.0.0" + }, + { + "test_index": 528, + "scheme": "npm", + "gitlab_native": ">=0.0.0", + "expected_vers": "vers:npm/>=0.0.0" + }, + { + "test_index": 529, + "scheme": "npm", + "gitlab_native": "<=0.0.10-2014-03-24-17-36-27", + "expected_vers": "vers:npm/<=0.0.10-2014-03-24-17-36-27" + }, + { + "test_index": 530, + "scheme": "npm", + "gitlab_native": "<2.0.2", + "expected_vers": "vers:npm/<2.0.2" + }, + { + "test_index": 531, + "scheme": "npm", + "gitlab_native": "=2.3.2", + "expected_vers": "vers:npm/2.3.2" + }, + { + "test_index": 532, + "scheme": "npm", + "gitlab_native": "<1.16.2", + "expected_vers": "vers:npm/<1.16.2" + }, + { + "test_index": 533, + "scheme": "npm", + "gitlab_native": "<3.1.13", + "expected_vers": "vers:npm/<3.1.13" + } +] \ No newline at end of file diff --git a/tests/data/pypi_gitlab.json b/tests/data/pypi_gitlab.json new file mode 100644 index 00000000..bcf2263b --- /dev/null +++ b/tests/data/pypi_gitlab.json @@ -0,0 +1,734 @@ +[ + { + "test_index": 1, + "scheme": "pypi", + "gitlab_native": ">=1.0a1,<1.0.5||>=1.1b1,<1.1.1", + "expected_vers": "vers:pypi/>=1.0a1|<1.0.5|>=1.1b1|<1.1.1" + }, + { + "test_index": 2, + "scheme": "pypi", + "gitlab_native": ">=5.0.0,<5.0.12||>=6.0.0,<6.0.5||>=6.1.0,<6.2.2", + "expected_vers": "vers:pypi/>=5.0.0|<5.0.12|>=6.0.0|<6.0.5|>=6.1.0|<6.2.2" + }, + { + "test_index": 3, + "scheme": "pypi", + "gitlab_native": ">=5.0.0,<5.0.12||>=6.0.0,<6.0.5||>=6.1.0,<6.2.2", + "expected_vers": "vers:pypi/>=5.0.0|<5.0.12|>=6.0.0|<6.0.5|>=6.1.0|<6.2.2" + }, + { + "test_index": 4, + "scheme": "pypi", + "gitlab_native": ">=4.0,<4.3||>=5.0,<5.2", + "expected_vers": "vers:pypi/>=4.0|<4.3|>=5.0|<5.2" + }, + { + "test_index": 5, + "scheme": "pypi", + "gitlab_native": ">=4.0,<4.3||>=5.0,<5.2", + "expected_vers": "vers:pypi/>=4.0|<4.3|>=5.0|<5.2" + }, + { + "test_index": 6, + "scheme": "pypi", + "gitlab_native": ">=1.10.0,<=1.10.15||>=2.0.0,<2.2.0", + "expected_vers": "vers:pypi/>=1.10.0|<=1.10.15|>=2.0.0|<2.2.0" + }, + { + "test_index": 7, + "scheme": "pypi", + "gitlab_native": ">=1.0.0,<1.10.15||>=2.0.0,<2.0.2", + "expected_vers": "vers:pypi/>=1.0.0|<1.10.15|>=2.0.0|<2.0.2" + }, + { + "test_index": 8, + "scheme": "pypi", + "gitlab_native": ">0.11.0,<0.11.7 || >0.12.0,<0.12.6", + "expected_vers": "vers:pypi/>0.11.0|<0.11.7|>0.12.0|<0.12.6" + }, + { + "test_index": 9, + "scheme": "pypi", + "gitlab_native": ">=2.12.0,<2.12.19||>=2.13.0,<2.13.8", + "expected_vers": "vers:pypi/>=2.12.0|<2.12.19|>=2.13.0|<2.13.8" + }, + { + "test_index": 10, + "scheme": "pypi", + "gitlab_native": "<2.12.21||>=2.13.0,<2.13.11", + "expected_vers": "vers:pypi/<2.12.21|>=2.13.0|<2.13.11" + }, + { + "test_index": 11, + "scheme": "pypi", + "gitlab_native": ">=2.8.0,<2.8.12||>=2.9.0,<2.9.12||>=2.10.0,<2.10.11||>=2.11.0", + "expected_vers": "vers:pypi/>=2.8.0|<2.8.12|>=2.9.0|<2.9.12|>=2.10.0|<2.10.11|>=2.11.0" + }, + { + "test_index": 12, + "scheme": "pypi", + "gitlab_native": "<21.2.3||>=22.0.0,<22.2.3||>=23.0.0,<23.0.3", + "expected_vers": "vers:pypi/<21.2.3|>=22.0.0|<22.2.3|>=23.0.0|<23.0.3" + }, + { + "test_index": 13, + "scheme": "pypi", + "gitlab_native": ">=2.4.0,<2.4.5||>=3.0.0,<3.1.1", + "expected_vers": "vers:pypi/>=2.4.0|<2.4.5|>=3.0.0|<3.1.1" + }, + { + "test_index": 14, + "scheme": "pypi", + "gitlab_native": "<1.9.0||>=2.0.0,<2.2.0", + "expected_vers": "vers:pypi/<1.9.0|>=2.0.0|<2.2.0" + }, + { + "test_index": 15, + "scheme": "pypi", + "gitlab_native": "<1.8.0||>=2.0.0,<2.1.0", + "expected_vers": "vers:pypi/<1.8.0|>=2.0.0|<2.1.0" + }, + { + "test_index": 16, + "scheme": "pypi", + "gitlab_native": ">=0.6.0,<=0.6.1||>=0.7.0,<=0.7.2", + "expected_vers": "vers:pypi/>=0.6.0|<=0.6.1|>=0.7.0|<=0.7.2" + }, + { + "test_index": 17, + "scheme": "pypi", + "gitlab_native": "<=3.4.6.27||>=4.0.0.21,<=4.1.0.25", + "expected_vers": "vers:pypi/<=3.4.6.27|>=4.0.0.21|<=4.1.0.25" + }, + { + "test_index": 18, + "scheme": "pypi", + "gitlab_native": "<=3.4.6.27||>=4.0.0.21,<=4.1.0.25", + "expected_vers": "vers:pypi/<=3.4.6.27|>=4.0.0.21|<=4.1.0.25" + }, + { + "test_index": 19, + "scheme": "pypi", + "gitlab_native": "<1.2.21||>=2.0.0,<2.2.10||>=2.3.0,<2.3.2||>=3.0.0,<3.0.17", + "expected_vers": "vers:pypi/<1.2.21|>=2.0.0|<2.2.10|>=2.3.0|<2.3.2|>=3.0.0|<3.0.17" + }, + { + "test_index": 20, + "scheme": "pypi", + "gitlab_native": "==2.3.0||==3.0.0", + "expected_vers": "vers:pypi/2.3.0|3.0.0" + }, + { + "test_index": 21, + "scheme": "pypi", + "gitlab_native": "<15.0.1||>=16.0.0.0rc1,<16.0.0", + "expected_vers": "vers:pypi/<15.0.1|>=16.0.0.0rc1|<16.0.0" + }, + { + "test_index": 22, + "scheme": "pypi", + "gitlab_native": "<1.3.1||>=2.0.0,<=3.0.0", + "expected_vers": "vers:pypi/<1.3.1|>=2.0.0|<=3.0.0" + }, + { + "test_index": 23, + "scheme": "pypi", + "gitlab_native": "<=1.7.0||>=2.0.0,<2.4.0", + "expected_vers": "vers:pypi/<=1.7.0|>=2.0.0|<2.4.0" + }, + { + "test_index": 24, + "scheme": "pypi", + "gitlab_native": "<1.8.6||>=1.9.0alpha,<1.10.5||>=2.0.0alpha,<2.0.2", + "expected_vers": "vers:pypi/<1.8.6|>=1.9.0a0|<1.10.5|>=2.0.0a0|<2.0.2" + }, + { + "test_index": 25, + "scheme": "pypi", + "gitlab_native": "<0.7.6||==0.8.0", + "expected_vers": "vers:pypi/<0.7.6|0.8.0" + }, + { + "test_index": 26, + "scheme": "pypi", + "gitlab_native": "<=1.2.17||==1.3.0", + "expected_vers": "vers:pypi/<=1.2.17|1.3.0" + }, + { + "test_index": 27, + "scheme": "pypi", + "gitlab_native": "<1.3.2||==2.0.0||==2.0.0b1", + "expected_vers": "vers:pypi/<1.3.2|2.0.0b1|2.0.0" + }, + { + "test_index": 28, + "scheme": "pypi", + "gitlab_native": ">=3.0.0,<=3.0.17||>=3.2.0,<=3.2.17||>=3.4.0,<=3.4.17 ||>=3.6.0", + "expected_vers": "vers:pypi/>=3.0.0|<=3.0.17|>=3.2.0|<=3.2.17|>=3.4.0|<=3.4.17|>=3.6.0" + }, + { + "test_index": 29, + "scheme": "pypi", + "gitlab_native": ">=4.2,<4.2.21||>=4.4,<4.4.19||>=4.6,<4.6.14||>=4.8,<4.8.10", + "expected_vers": "vers:pypi/>=4.2|<4.2.21|>=4.4|<4.4.19|>=4.6|<4.6.14|>=4.8|<4.8.10" + }, + { + "test_index": 30, + "scheme": "pypi", + "gitlab_native": "==4.4.1||==4.10", + "expected_vers": "vers:pypi/4.4.1|4.10" + }, + { + "test_index": 31, + "scheme": "pypi", + "gitlab_native": "==5.3.0||==6.1.0||==7.2.0", + "expected_vers": "vers:pypi/5.3.0|6.1.0|7.2.0" + }, + { + "test_index": 32, + "scheme": "pypi", + "gitlab_native": "<2019.2.4||>=3000,<3000.2", + "expected_vers": "vers:pypi/<2019.2.4|>=3000|<3000.2" + }, + { + "test_index": 33, + "scheme": "pypi", + "gitlab_native": "<=2015.8.12||>=2016.3.0,<=2016.3.4||>=2016.11.0,<=2016.11.2", + "expected_vers": "vers:pypi/<=2015.8.12|>=2016.3.0|<=2016.3.4|>=2016.11.0|<=2016.11.2" + }, + { + "test_index": 34, + "scheme": "pypi", + "gitlab_native": "<=2016.3.7||>=2016.11,<=2016.11.7||>=2017.7.0,<=2017.7.1", + "expected_vers": "vers:pypi/<=2016.3.7|>=2016.11|<=2016.11.7|>=2017.7.0|<=2017.7.1" + }, + { + "test_index": 35, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.3.8||>=2016.11.0,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.3.8|>=2016.11.0|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 36, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 37, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.3.8||>=2016.11.0,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.3.8|>=2016.11.0|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 38, + "scheme": "pypi", + "gitlab_native": ">=3002,<3002.8||>=3003,<3003.4||>=3004,<3004.1", + "expected_vers": "vers:pypi/>=3002|<3002.8|>=3003|<3003.4|>=3004|<3004.1" + }, + { + "test_index": 39, + "scheme": "pypi", + "gitlab_native": "<=2016.11.6||==2017.7.0", + "expected_vers": "vers:pypi/<=2016.11.6|2017.7.0" + }, + { + "test_index": 40, + "scheme": "pypi", + "gitlab_native": ">=3002,<3002.8||>=3003,<3003.4||>=3004,<3004.1", + "expected_vers": "vers:pypi/>=3002|<3002.8|>=3003|<3003.4|>=3004|<3004.1" + }, + { + "test_index": 41, + "scheme": "pypi", + "gitlab_native": "<=2016.3.7||>=2016.11,<=2016.11.7||>=2017.7.0,<=2017.7.1", + "expected_vers": "vers:pypi/<=2016.3.7|>=2016.11|<=2016.11.7|>=2017.7.0|<=2017.7.1" + }, + { + "test_index": 42, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10||>=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 43, + "scheme": "pypi", + "gitlab_native": ">=3002,<3002.8||>=3003,<3003.4||>=3004,<3004.1", + "expected_vers": "vers:pypi/>=3002|<3002.8|>=3003|<3003.4|>=3004|<3004.1" + }, + { + "test_index": 44, + "scheme": "pypi", + "gitlab_native": "<=2015.8.12||>=2016.3.0,<=2016.3.4||>=2016.11.0,<=2016.11.2", + "expected_vers": "vers:pypi/<=2015.8.12|>=2016.3.0|<=2016.3.4|>=2016.11.0|<=2016.11.2" + }, + { + "test_index": 45, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10||>=2017.5.0,<2017.7.8||", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 46, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 47, + "scheme": "pypi", + "gitlab_native": "<2019.2.4||>=3000,<3000.2", + "expected_vers": "vers:pypi/<2019.2.4|>=3000|<3000.2" + }, + { + "test_index": 48, + "scheme": "pypi", + "gitlab_native": "<2017.7.8||>=2018.3.0,<2018.3.3", + "expected_vers": "vers:pypi/<2017.7.8|>=2018.3.0|<2018.3.3" + }, + { + "test_index": 49, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.3.8||>=2016.11.0,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.3.8|>=2016.11.0|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 50, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 51, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 52, + "scheme": "pypi", + "gitlab_native": "<2017.7.8||>=2018.3.0,<2018.3.3", + "expected_vers": "vers:pypi/<2017.7.8|>=2018.3.0|<2018.3.3" + }, + { + "test_index": 53, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 54, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10 ||>=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 55, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 56, + "scheme": "pypi", + "gitlab_native": ">=3002,<3002.8||>=3003,<3003.4||>=3004,<3004.1", + "expected_vers": "vers:pypi/>=3002|<3002.8|>=3003|<3003.4|>=3004|<3004.1" + }, + { + "test_index": 57, + "scheme": "pypi", + "gitlab_native": "<2015.8.13||>=2016.3.0,<2016.11.5||>=2016.11.7,<2016.11.10|| >=2017.5.0,<2017.7.8", + "expected_vers": "vers:pypi/<2015.8.13|>=2016.3.0|<2016.11.5|>=2016.11.7|<2016.11.10|>=2017.5.0|<2017.7.8" + }, + { + "test_index": 58, + "scheme": "pypi", + "gitlab_native": "<5.7.11||>=6.0.0,<6.4.1", + "expected_vers": "vers:pypi/<5.7.11|>=6.0.0|<6.4.1" + }, + { + "test_index": 59, + "scheme": "pypi", + "gitlab_native": ">=5.7.0,<5.7.11||==6.4.0", + "expected_vers": "vers:pypi/>=5.7.0|<5.7.11|6.4.0" + }, + { + "test_index": 60, + "scheme": "pypi", + "gitlab_native": "<1.1.2||==2.0.0rc1", + "expected_vers": "vers:pypi/<1.1.2|2.0.0rc1" + }, + { + "test_index": 61, + "scheme": "pypi", + "gitlab_native": "<16.4.1||>=17.0.0,<17.1.3||==18.0.0", + "expected_vers": "vers:pypi/<16.4.1|>=17.0.0|<17.1.3|18.0.0" + }, + { + "test_index": 62, + "scheme": "pypi", + "gitlab_native": ">=11.0.0,<11.0.7||>=12.0.0,<12.0.6||>=13.0.0,<13.0.3", + "expected_vers": "vers:pypi/>=11.0.0|<11.0.7|>=12.0.0|<12.0.6|>=13.0.0|<13.0.3" + }, + { + "test_index": 63, + "scheme": "pypi", + "gitlab_native": ">=7.0.0,<7.2.1||>=8.0.0,<8.3.1||>=9.0.0,<9.3.2", + "expected_vers": "vers:pypi/>=7.0.0|<7.2.1|>=8.0.0|<8.3.1|>=9.0.0|<9.3.2" + }, + { + "test_index": 64, + "scheme": "pypi", + "gitlab_native": ">=11.0.0,<=11.0.5||>=12.0.0,<=12.0.3||==13.0.0.0", + "expected_vers": "vers:pypi/>=11.0.0|<=11.0.5|>=12.0.0|<=12.0.3|13.0.0.0" + }, + { + "test_index": 65, + "scheme": "pypi", + "gitlab_native": "<15.3.3||>=16.0.0,<16.3.1||>=17.0.0,<17.1.1", + "expected_vers": "vers:pypi/<15.3.3|>=16.0.0|<16.3.1|>=17.0.0|<17.1.1" + }, + { + "test_index": 66, + "scheme": "pypi", + "gitlab_native": "<16.4.1||>=17.0.0,<17.2.1||>=18.0.0,<18.1.1", + "expected_vers": "vers:pypi/<16.4.1|>=17.0.0|<17.2.1|>=18.0.0|<18.1.1" + }, + { + "test_index": 67, + "scheme": "pypi", + "gitlab_native": ">=7.0.0,<=11.0.4||>=12.0.0,<=12.0.2||==13.0.0", + "expected_vers": "vers:pypi/>=7.0.0|<=11.0.4|>=12.0.0|<=12.0.2|13.0.0" + }, + { + "test_index": 68, + "scheme": "pypi", + "gitlab_native": "<16.4.1||>=17.0.0,<17.2.1||>=18.0.0,<18.1.1", + "expected_vers": "vers:pypi/<16.4.1|>=17.0.0|<17.2.1|>=18.0.0|<18.1.1" + }, + { + "test_index": 69, + "scheme": "pypi", + "gitlab_native": "<10.0.8||>=11.0.0,<11.0.7||>=12.0.0,<12.0.6||>=13.0.0,<13.0.3", + "expected_vers": "vers:pypi/<10.0.8|>=11.0.0|<11.0.7|>=12.0.0|<12.0.6|>=13.0.0|<13.0.3" + }, + { + "test_index": 70, + "scheme": "pypi", + "gitlab_native": "<6.2.3||==7.0.0", + "expected_vers": "vers:pypi/<6.2.3|7.0.0" + }, + { + "test_index": 71, + "scheme": "pypi", + "gitlab_native": "<6.2.3||==7.0.0", + "expected_vers": "vers:pypi/<6.2.3|7.0.0" + }, + { + "test_index": 72, + "scheme": "pypi", + "gitlab_native": "<6.2.3||==7.0.0", + "expected_vers": "vers:pypi/<6.2.3|7.0.0" + }, + { + "test_index": 73, + "scheme": "pypi", + "gitlab_native": ">=2.3.0,<2.3.2||>=2.5.0,<2.5.2", + "expected_vers": "vers:pypi/>=2.3.0|<2.3.2|>=2.5.0|<2.5.2" + }, + { + "test_index": 74, + "scheme": "pypi", + "gitlab_native": ">=1.0,<=1.1.7||>=1.2,<=8.2.0", + "expected_vers": "vers:pypi/>=1.0|<=1.1.7|>=1.2|<=8.2.0" + }, + { + "test_index": 75, + "scheme": "pypi", + "gitlab_native": "<4.6.1||>=5.0.0,<5.2.1", + "expected_vers": "vers:pypi/<4.6.1|>=5.0.0|<5.2.1" + }, + { + "test_index": 76, + "scheme": "pypi", + "gitlab_native": ">=4.0,<4.6.3||>=5.0,<5.3", + "expected_vers": "vers:pypi/>=4.0|<4.6.3|>=5.0|<5.3" + }, + { + "test_index": 77, + "scheme": "pypi", + "gitlab_native": "<4.6||>=5.0,<5.2", + "expected_vers": "vers:pypi/<4.6|>=5.0|<5.2" + }, + { + "test_index": 78, + "scheme": "pypi", + "gitlab_native": "<0.13.7||>=0.14.0,<0.14.6", + "expected_vers": "vers:pypi/<0.13.7|>=0.14.0|<0.14.6" + }, + { + "test_index": 79, + "scheme": "pypi", + "gitlab_native": "<7.5.7||>=8.0.0,<8.1.0", + "expected_vers": "vers:pypi/<7.5.7|>=8.0.0|<8.1.0" + }, + { + "test_index": 80, + "scheme": "pypi", + "gitlab_native": "<=5.10.0||>=6.0.0,<7.16.3||>=7.17.0,<7.31.1||>=8.0.0,<8.0.1", + "expected_vers": "vers:pypi/<=5.10.0|>=6.0.0|<7.16.3|>=7.17.0|<7.31.1|>=8.0.0|<8.0.1" + }, + { + "test_index": 81, + "scheme": "pypi", + "gitlab_native": ">=3.4.0,<3.4.7||>=3.5.0,<3.5.4||>=3.6.0,<3.6.1||>=3.7.0", + "expected_vers": "vers:pypi/>=3.4.0|<3.4.7|>=3.5.0|<3.5.4|>=3.6.0|<3.6.1|>=3.7.0" + }, + { + "test_index": 82, + "scheme": "pypi", + "gitlab_native": "<=3.4.6.27||>=4.0.0.21,<=4.1.0.25", + "expected_vers": "vers:pypi/<=3.4.6.27|>=4.0.0.21|<=4.1.0.25" + }, + { + "test_index": 83, + "scheme": "pypi", + "gitlab_native": "<=3.4.6.27||>=4.0.0.21,<=4.1.0.25", + "expected_vers": "vers:pypi/<=3.4.6.27|>=4.0.0.21|<=4.1.0.25" + }, + { + "test_index": 84, + "scheme": "pypi", + "gitlab_native": "<1.9.0||>=2.0.0,<2.2.0", + "expected_vers": "vers:pypi/<1.9.0|>=2.0.0|<2.2.0" + }, + { + "test_index": 85, + "scheme": "pypi", + "gitlab_native": ">=1.0.0,<1.1.1||>=2.0.0,<2.1.1||>=3.0.0,<=3.1.1", + "expected_vers": "vers:pypi/>=1.0.0|<1.1.1|>=2.0.0|<2.1.1|>=3.0.0|<=3.1.1" + }, + { + "test_index": 86, + "scheme": "pypi", + "gitlab_native": "<1.8.2||>=2.0.0,<2.3.1", + "expected_vers": "vers:pypi/<1.8.2|>=2.0.0|<2.3.1" + }, + { + "test_index": 87, + "scheme": "pypi", + "gitlab_native": "==3.1||>=4.0.0,<=4.0.2", + "expected_vers": "vers:pypi/3.1|>=4.0.0|<=4.0.2" + }, + { + "test_index": 88, + "scheme": "pypi", + "gitlab_native": ">=2.1,<2.1.15||>=2.2,<2.2.8", + "expected_vers": "vers:pypi/>=2.1|<2.1.15|>=2.2|<2.2.8" + }, + { + "test_index": 89, + "scheme": "pypi", + "gitlab_native": ">=1.4,<1.4.11||>=1.5,<1.5.6||>=1.6,<1.6.3", + "expected_vers": "vers:pypi/>=1.4|<1.4.11|>=1.5|<1.5.6|>=1.6|<1.6.3" + }, + { + "test_index": 90, + "scheme": "pypi", + "gitlab_native": ">=1.8.0a,<1.8.10||>=1.9.0a,<1.9.3", + "expected_vers": "vers:pypi/>=1.8.0a0|<1.8.10|>=1.9.0a0|<1.9.3" + }, + { + "test_index": 91, + "scheme": "pypi", + "gitlab_native": ">=1.2.0,<1.2.7||>=1.3.0,<1.3.1", + "expected_vers": "vers:pypi/>=1.2.0|<1.2.7|>=1.3.0|<1.3.1" + }, + { + "test_index": 92, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.26||>=3.2,<3.2.11||>=4.0,<4.0.1", + "expected_vers": "vers:pypi/>=2.2|<2.2.26|>=3.2|<3.2.11|>=4.0|<4.0.1" + }, + { + "test_index": 93, + "scheme": "pypi", + "gitlab_native": ">=1.11.8,<=1.11.9||>=2.0,<=2.0.1", + "expected_vers": "vers:pypi/>=1.11.8|<=1.11.9|>=2.0|<=2.0.1" + }, + { + "test_index": 94, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.16||>=3.0,<3.0.10||>=3.1,<3.1.1", + "expected_vers": "vers:pypi/>=2.2|<2.2.16|>=3.0|<3.0.10|>=3.1|<3.1.1" + }, + { + "test_index": 95, + "scheme": "pypi", + "gitlab_native": ">=1.3.0,<1.3.1||>=1.2.0,<1.2.7", + "expected_vers": "vers:pypi/>=1.2.0|<1.2.7|>=1.3.0|<1.3.1" + }, + { + "test_index": 96, + "scheme": "pypi", + "gitlab_native": ">=1.1.0,<1.1.4||>=1.2.0,<1.2.5", + "expected_vers": "vers:pypi/>=1.1.0|<1.1.4|>=1.2.0|<1.2.5" + }, + { + "test_index": 97, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.27||>=3.2,<3.2.12||>=4.0,<4.0.2", + "expected_vers": "vers:pypi/>=2.2|<2.2.27|>=3.2|<3.2.12|>=4.0|<4.0.2" + }, + { + "test_index": 98, + "scheme": "pypi", + "gitlab_native": ">=1.11,<1.11.15||>=2.0,<2.0.8", + "expected_vers": "vers:pypi/>=1.11|<1.11.15|>=2.0|<2.0.8" + }, + { + "test_index": 99, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.26||>=3.2,<3.2.11||>=4.0,<4.0.1", + "expected_vers": "vers:pypi/>=2.2|<2.2.26|>=3.2|<3.2.11|>=4.0|<4.0.1" + }, + { + "test_index": 100, + "scheme": "pypi", + "gitlab_native": ">=1.11.0,<1.11.19||>=2.0.0,<2.0.11||>=2.1.0,<2.1.6", + "expected_vers": "vers:pypi/>=1.11.0|<1.11.19|>=2.0.0|<2.0.11|>=2.1.0|<2.1.6" + }, + { + "test_index": 101, + "scheme": "pypi", + "gitlab_native": ">=1.11alpha,<1.11||>=1.10.0alpha,<1.10.7||>=1.9.0alpha,<1.9.13||<1.8.18", + "expected_vers": "vers:pypi/<1.8.18|>=1.9.0a0|<1.9.13|>=1.10.0a0|<1.10.7|>=1.11a0|<1.11" + }, + { + "test_index": 102, + "scheme": "pypi", + "gitlab_native": ">=1.4,<1.4.13||>=1.5,<1.5.8||>=1.6,<1.6.5||>=1.7.b1,<1.7b3", + "expected_vers": "vers:pypi/>=1.4|<1.4.13|>=1.5|<1.5.8|>=1.6|<1.6.5|>=1.7b1|<1.7b3" + }, + { + "test_index": 103, + "scheme": "pypi", + "gitlab_native": ">=1.4,<1.4.11||>=1.5,<1.5.6||>=1.6,<1.6.3", + "expected_vers": "vers:pypi/>=1.4|<1.4.11|>=1.5|<1.5.6|>=1.6|<1.6.3" + }, + { + "test_index": 104, + "scheme": "pypi", + "gitlab_native": ">=1.11,<1.11.21||>=2.1,<2.1.9||>=2.2,<2.2.2", + "expected_vers": "vers:pypi/>=1.11|<1.11.21|>=2.1|<2.1.9|>=2.2|<2.2.2" + }, + { + "test_index": 105, + "scheme": "pypi", + "gitlab_native": ">=1.8.0a,<1.8.10||>=1.9.0a,<1.9.3", + "expected_vers": "vers:pypi/>=1.8.0a0|<1.8.10|>=1.9.0a0|<1.9.3" + }, + { + "test_index": 106, + "scheme": "pypi", + "gitlab_native": "<1.11.27||>=2.2,<2.2.9||==3.0", + "expected_vers": "vers:pypi/<1.11.27|>=2.2|<2.2.9|3.0" + }, + { + "test_index": 107, + "scheme": "pypi", + "gitlab_native": ">=1.8.0a,<1.8.3||>=1.7.0a,<1.7.9||>=1.4.0a,<1.4.21", + "expected_vers": "vers:pypi/>=1.4.0a0|<1.4.21|>=1.7.0a0|<1.7.9|>=1.8.0a0|<1.8.3" + }, + { + "test_index": 108, + "scheme": "pypi", + "gitlab_native": ">=1.10.0alpha,<1.10.3||>=1.9.0alpha,<1.9.11||<1.8.16", + "expected_vers": "vers:pypi/<1.8.16|>=1.9.0a0|<1.9.11|>=1.10.0a0|<1.10.3" + }, + { + "test_index": 109, + "scheme": "pypi", + "gitlab_native": ">=1.8.0a,<1.8.4||>=1.7.0a,<1.7.10||>=1.4.0a,<1.4.22", + "expected_vers": "vers:pypi/>=1.4.0a0|<1.4.22|>=1.7.0a0|<1.7.10|>=1.8.0a0|<1.8.4" + }, + { + "test_index": 110, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.13||>=3.0,<3.0.7", + "expected_vers": "vers:pypi/>=2.2|<2.2.13|>=3.0|<3.0.7" + }, + { + "test_index": 111, + "scheme": "pypi", + "gitlab_native": ">=1.11,<1.11.23||>=2.1,<2.1.11||>=2.2,<2.2.4", + "expected_vers": "vers:pypi/>=1.11|<1.11.23|>=2.1|<2.1.11|>=2.2|<2.2.4" + }, + { + "test_index": 112, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.25||>=3.1,<3.1.14||>=3.2,<3.2.10", + "expected_vers": "vers:pypi/>=2.2|<2.2.25|>=3.1|<3.1.14|>=3.2|<3.2.10" + }, + { + "test_index": 113, + "scheme": "pypi", + "gitlab_native": ">=1.11,<1.11.22||>=2.1,<2.1.10||>=2.2,<2.2.3", + "expected_vers": "vers:pypi/>=1.11|<1.11.22|>=2.1|<2.1.10|>=2.2|<2.2.3" + }, + { + "test_index": 114, + "scheme": "pypi", + "gitlab_native": ">=1.8,<1.8.19||>=1.11,<1.11.11||>=2.0,<2.0.3", + "expected_vers": "vers:pypi/>=1.8|<1.8.19|>=1.11|<1.11.11|>=2.0|<2.0.3" + }, + { + "test_index": 115, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.19||>=3.0,<3.0.13||>=3.1,<3.1.7", + "expected_vers": "vers:pypi/>=2.2|<2.2.19|>=3.0|<3.0.13|>=3.1|<3.1.7" + }, + { + "test_index": 116, + "scheme": "pypi", + "gitlab_native": "<2.2.24||>=3.0.0,<3.1.12||>=3.2.0,<3.2.4", + "expected_vers": "vers:pypi/<2.2.24|>=3.0.0|<3.1.12|>=3.2.0|<3.2.4" + }, + { + "test_index": 117, + "scheme": "pypi", + "gitlab_native": "<1.2.7||>=1.3.0,<1.3.1", + "expected_vers": "vers:pypi/<1.2.7|>=1.3.0|<1.3.1" + }, + { + "test_index": 118, + "scheme": "pypi", + "gitlab_native": ">=1.1.0,<1.1.4||>=1.2.0,<1.2.5", + "expected_vers": "vers:pypi/>=1.1.0|<1.1.4|>=1.2.0|<1.2.5" + }, + { + "test_index": 119, + "scheme": "pypi", + "gitlab_native": ">=2.2,<2.2.26||>=3.2,<3.2.11||>=4.0,<4.0.1", + "expected_vers": "vers:pypi/>=2.2|<2.2.26|>=3.2|<3.2.11|>=4.0|<4.0.1" + }, + { + "test_index": 120, + "scheme": "pypi", + "gitlab_native": ">=1.10.0,<=1.10.7||>=1.11.0,<=1.11.4", + "expected_vers": "vers:pypi/>=1.10.0|<=1.10.7|>=1.11.0|<=1.11.4" + }, + { + "test_index": 121, + "scheme": "pypi", + "gitlab_native": ">=1.1.0,<1.1.4||>=1.2.0,<1.2.5", + "expected_vers": "vers:pypi/>=1.1.0|<1.1.4|>=1.2.0|<1.2.5" + }, + { + "test_index": 122, + "scheme": "pypi", + "gitlab_native": ">=1.9.0alpha,<1.9.10||<1.8.15", + "expected_vers": "vers:pypi/<1.8.15|>=1.9.0a0|<1.9.10" + } +] \ No newline at end of file diff --git a/tests/test_version_range.py b/tests/test_version_range.py index b2a81048..5bf86f06 100644 --- a/tests/test_version_range.py +++ b/tests/test_version_range.py @@ -4,11 +4,13 @@ # # Visit https://aboutcode.org and https://github.com/nexB/univers for support and download. +import json from unittest import TestCase import pytest from univers.version_constraint import VersionConstraint from univers.version_range import GemVersionRange +from univers.version_range import GitLabVersionRange from univers.version_range import NugetVersionRange from univers.version_range import InvalidVersionRange from univers.version_range import PypiVersionRange @@ -330,3 +332,30 @@ def test_PypiVersionRange_raises_ivr_for_unsupported_and_invalid_ranges(range, w assert expected in str(ivre) else: assert expected == str(PypiVersionRange.from_native(range)) + + +@pytest.mark.parametrize("test_case", json.load(open("./tests/data/pypi_gitlab.json"))) +def test_pypi_gitlab_version_range_parse(test_case): + result = GitLabVersionRange.from_gitlab_native( + scheme=test_case["scheme"], + string=test_case["gitlab_native"], + ) + assert str(result) == test_case["expected_vers"] + + +@pytest.mark.parametrize("test_case", json.load(open("./tests/data/npm_gitlab.json"))) +def test_npm_gitlab_version_range_parse(test_case): + result = GitLabVersionRange.from_gitlab_native( + scheme=test_case["scheme"], + string=test_case["gitlab_native"], + ) + assert str(result) == test_case["expected_vers"] + + +@pytest.mark.parametrize("test_case", json.load(open("./tests/data/gem_gitlab.json"))) +def test_gem_gitlab_version_range_parse(test_case): + result = GitLabVersionRange.from_gitlab_native( + scheme=test_case["scheme"], + string=test_case["gitlab_native"], + ) + assert str(result) == test_case["expected_vers"]