Class TestMinimumEditPathString


  • public class TestMinimumEditPathString
    extends Object
    These tests ensure that basic string paths can easily be worked with, but also test the general beahviour of MinimumEditPath
    • Constructor Detail

      • TestMinimumEditPathString

        public TestMinimumEditPathString()
    • Method Detail

      • stringEqual

        public void stringEqual()
      • thisToThat

        public void thisToThat()
      • emptyToThat

        public void emptyToThat()
      • thisToEmpty

        public void thisToEmpty()
      • emptyToEmpty

        public void emptyToEmpty()
      • defaultCosts

        public void defaultCosts()
      • defaultExpensiveChange

        public void defaultExpensiveChange()
      • customCosts

        public void customCosts()
      • customComparator

        public void customComparator()
        These tests use a custom comparator which assigns distances depending on the characters involved:
        • If it's the same character but different case, distance is 1
        • If it's a space character to another space character, distance is 4
        • If it's a digit to another digit, distance is 4
        • If it's a vowel to another vowel, distance is 4
        • If it's a plosive to another plosive, distance is 4
        • If it's a fricative to another fricative, distance is 4
        • If it's a stop to another stop, distance is 4
        • If it's a letter to another leffer, distance is 8
        • Otherwise it's 20
        Also, deletes and inserts are both 10.
      • main

        public static void main​(String[] args)