Esempio n. 1
0
            public void ShouldReturnDamerauLevenshteinDistanceOfNegative1()
            {
                var result = DamerauLevenshteinDistance.DamLev(InputRam, InputMom, 1);

                Assert.AreEqual(-1, result);
            }
Esempio n. 2
0
            public void ShouldReturnDamerauLevenshteinDistanceOf0()
            {
                var result = DamerauLevenshteinDistance.DamLev(InputArm, InputArm);

                Assert.AreEqual(0, result);
            }
Esempio n. 3
0
            public void ShouldReturnDamerauLevenshteinDistanceOf2()
            {
                var result = DamerauLevenshteinDistance.DamLev(InputRam, InputMom);

                Assert.AreEqual(2, result);
            }