Created
December 8, 2016 15:01
-
-
Save jesslilly/07b1b2cf8f9ab2308ebf3b1f3f0266b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void GetSimilarity_SpaceInTarget_NotZero() | |
{ | |
var matcher = new SimMetricsMetricUtilities.JaroWinkler(); | |
var target = " 1 main"; | |
var candidate = "1 main st"; | |
var similarity = matcher.GetSimilarity(candidate, target); | |
var message = string.Format("Expect similarity {0} to be > .9", similarity); | |
Assert.IsTrue(similarity > .90, message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment