Package nzilbb.util
Class TestSemanticVersionComparator
- java.lang.Object
-
- nzilbb.util.TestSemanticVersionComparator
-
public class TestSemanticVersionComparator extends Object
-
-
Constructor Summary
Constructors Constructor Description TestSemanticVersionComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
basicSemanticComparison()
Ensure basic comparisons like "1.2.3" < "3.2.1" work.void
basicSemanticComparisonRStyle()
Ensure R-style hyphened comparisons like "1.2-3" < "3.2-1" work.static void
main(String[] args)
void
nonSemantic()
Ensure non-semantic comparisons like "20210329.1700" < "20210329.1701" work.void
semanticWithNonSemantic()
Ensure mixed-style comparisons like "20210329.1700" < "1.2.3" work as expected.void
semanticWithSuffixes()
Ensure suffixed comparisons like "1.2.3-SNAPSHOT" < "1.2.3" work.
-
-
-
Method Detail
-
basicSemanticComparison
public void basicSemanticComparison() throws Exception
Ensure basic comparisons like "1.2.3" < "3.2.1" work.- Throws:
Exception
-
semanticWithSuffixes
public void semanticWithSuffixes() throws Exception
Ensure suffixed comparisons like "1.2.3-SNAPSHOT" < "1.2.3" work.- Throws:
Exception
-
basicSemanticComparisonRStyle
public void basicSemanticComparisonRStyle() throws Exception
Ensure R-style hyphened comparisons like "1.2-3" < "3.2-1" work.- Throws:
Exception
-
semanticWithNonSemantic
public void semanticWithNonSemantic() throws Exception
Ensure mixed-style comparisons like "20210329.1700" < "1.2.3" work as expected.- Throws:
Exception
-
nonSemantic
public void nonSemantic() throws Exception
Ensure non-semantic comparisons like "20210329.1700" < "20210329.1701" work.- Throws:
Exception
-
main
public static void main(String[] args)
-
-