Schema for Version Range Specifier tests definitions.
No Additional PropertiesContains the URL of the JSON schema for Version Range Specifier tests.
A list of Version Range Specifier tests.
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsA VERS test with input and expected output.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"from_native"
false
An object with a data source and native version range data to use as conversion test from native data.
A string (like a scheme or else) or URL that identifies the source of the data for this test input.
"https://github.com/npm/node-semver#ranges"
"https://gitlab.com/gitlab-org/advisories-community/-/tree/main/packagist"
"https://gitlab.com/gitlab-org/advisories-community/-/tree/main/go"
"https://git.alpinelinux.org/apk-tools/tree/test/unit/version.data"
"https://github.com/rpm-software-management/rpm/blob/master/tests/rpmvercmp.at"
A native version range data that can be any of a string, array or object.
A canonical VERS string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"parse"
false
A VERS string to use as a test input (canonical or not).
Test output as an object decoded VERS components.
A versioning scheme.
"maven"
"npm"
"pypi"
"semver"
A list of version constraints as two-tuples of (comparator, version).
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsA VERS version constraint as two-tuple array of (comparator, version string).
Must contain a minimum of 2 items
Must contain a maximum of 2 items
A VERS version comparator.
A version string.
"1.2.3"
"54.a-RELEASE"
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"build"
false
Test input as an object of decoded VERS components.
A versioning scheme.
"maven"
"npm"
"pypi"
"semver"
A list of version constraints as two-tuples of (comparator, version).
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsA VERS version constraint as two-tuple array of (comparator, version string).
Must contain a minimum of 2 items
Must contain a maximum of 2 items
A VERS version comparator.
A version string.
"1.2.3"
"54.a-RELEASE"
A canonical VERS string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"roundtrip"
A VERS string to use as a test input (canonical or not).
A canonical VERS string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"merge"
false
Test input as a list of VERS strings.
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsAn expected canonical merged VERS string to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"containment"
false
A version and a VERS string to use as a containment test input.
A version string to for containment in the input VERS.
A canonical VERS string used to test its containmant of the input version.
A true boolean if the version is contained in the input VERS or false otherwise.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"comparison"
false
A VERS scheme and a list of version strings to use as sorting test input.
A versioning scheme.
Test input as a list of bare versions strings.
Must contain a minimum of 2 items
An expected sorted list of version strings to use as a test ouput.
Must contain a minimum of 2 items
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"equality"
false
A VERS scheme and a two-tuple of version strings to compare.
A versioning scheme.
Test input as a tuple of two bare versions strings.
Must contain a minimum of 2 items
Must contain a maximum of 2 items
A true boolean if two bare versions are expected to be equal to use as a test ouput.
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"parse"
true
A VERS string to use as a test input (canonical or not).
If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.
"build"
true
Test input as an object of decoded VERS components.
A versioning scheme.
"maven"
"npm"
"pypi"
"semver"
A list of version constraints as two-tuples of (comparator, version).
Must contain a minimum of 1 items
All items must be unique
No Additional ItemsA VERS version constraint as two-tuple array of (comparator, version string).
Must contain a minimum of 2 items
Must contain a maximum of 2 items
A VERS version comparator.
A version string.
"1.2.3"
"54.a-RELEASE"
A description for this test.
The group of this test like 'base' or 'advanced'.
Test group for base conformance tests for VERS building and parsing.
Test group for advanced tests to support flexible VERS building and parsing.
The type of this test like 'build' or 'parse'.
A VERS construction test from native ecosystem range data input from a data source to a canonical VERS string.
A VERS parsing test from a VERS string to decoded scheme and constraints list.
A VERS building test from decoded components to a canonical VERS string.
A VERS roundtrip test, parsing then building back a VERS from a canonical string input.
A VERS merging test from an array of VERS strings to a canonical VERS string.
A VERS containment to test if a bare version string is contained in the range of a VERS string.
A VERS inversion of a VERS string to a canonical VERS string.
A version comparison test to sort an input version strings array using the scheme rules.
A version equality test to check if two input versions strings are equal using the scheme rules.
true if this test input is expected to fail to be processed.
The reason why this test is is expected to fail if expected_failure is true.