示例#1
0
            public void ShouldReturnJaroWinklerDistanceOf1()
            {
                var result = JaroWinklerDistance.CalculateDistance(InputPassword, InputU);

                Assert.IsTrue(Math.Abs(result - 1.0) < 0.0000001);
            }
示例#2
0
            public void ShouldReturnJaroWinklerDistanceOfPoint5()
            {
                var result = JaroWinklerDistance.CalculateDistance(InputPassword, InputUsername);

                Assert.IsTrue(Math.Abs(result - 0.5) < 0.0000001);
            }