Package nzilbb.util

Class TestSemanticVersionComparator


  • public class TestSemanticVersionComparator
    extends Object
    • Constructor Detail

      • TestSemanticVersionComparator

        public TestSemanticVersionComparator()
    • 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)