45 references to VerifyEditDistance
Microsoft.CodeAnalysis.Workspaces.UnitTests (45)
UtilityTest\EditDistanceTests.cs (45)
40VerifyEditDistance("", "", 0);
41VerifyEditDistance("a", "a", 0);
47VerifyEditDistance("", "a", 1);
48VerifyEditDistance("a", "", 1);
49VerifyEditDistance("a", "b", 1);
50VerifyEditDistance("ab", "a", 1);
51VerifyEditDistance("a", "ab", 1);
52VerifyEditDistance("aabb", "abab", 1);
58VerifyEditDistance("", "aa", 2);
59VerifyEditDistance("aa", "", 2);
60VerifyEditDistance("aa", "bb", 2);
61VerifyEditDistance("aab", "a", 2);
62VerifyEditDistance("a", "aab", 2);
63VerifyEditDistance("aababb", "ababab", 2);
69VerifyEditDistance("", "aaa", 3);
70VerifyEditDistance("aaa", "", 3);
71VerifyEditDistance("aaa", "bbb", 3);
72VerifyEditDistance("aaab", "a", 3);
73VerifyEditDistance("a", "aaab", 3);
74VerifyEditDistance("aababbab", "abababaa", 3);
79=> VerifyEditDistance("XlmReade", "XmlReader", 2);
83=> VerifyEditDistance("Zeil", "trials", 4);
87=> VerifyEditDistance("barking", "corkliness", 6);
91=> VerifyEditDistance("kitten", "sitting", 3);
95=> VerifyEditDistance("sunday", "saturday", 3);
99=> VerifyEditDistance("meilenstein", "levenshtein", 4);
103=> VerifyEditDistance("rosettacode", "raisethysword", 8);
110VerifyEditDistance("book", "moons", 3);
116VerifyEditDistance("aaaab", "aaabc", 2);
117VerifyEditDistance("aaaab", "aabcc", 3);
118VerifyEditDistance("aaaab", "abccc", 4);
119VerifyEditDistance("aaaab", "bcccc", 5);
121VerifyEditDistance("aaaabb", "aaabbc", 2);
122VerifyEditDistance("aaaabb", "aabbcc", 4);
123VerifyEditDistance("aaaabb", "abbccc", 5);
124VerifyEditDistance("aaaabb", "bbcccc", 6);
126VerifyEditDistance("aaaabbb", "aaabbbc", 2);
127VerifyEditDistance("aaaabbb", "aabbbcc", 4);
128VerifyEditDistance("aaaabbb", "abbbccc", 6);
129VerifyEditDistance("aaaabbb", "bbbcccc", 7);
131VerifyEditDistance("aaaabbbb", "aaabbbbc", 2);
132VerifyEditDistance("aaaabbbb", "aabbbbcc", 4);
133VerifyEditDistance("aaaabbbb", "abbbbccc", 6);
134VerifyEditDistance("aaaabbbb", "bbbbcccc", 8);
261VerifyEditDistance("CA", "ABC", 2);