Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesslilly/07b1b2cf8f9ab2308ebf3b1f3f0266b2 to your computer and use it in GitHub Desktop.
Save jesslilly/07b1b2cf8f9ab2308ebf3b1f3f0266b2 to your computer and use it in GitHub Desktop.
[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