public void DiffWords() { var result = d.DiffWords( "Soft drinks, coffees, teas, beers, and ginger ales", "Soft drinks, coffees, teas and beers"); var str = result.ToString(""); Assert.Equal("Soft drinks, coffees, teas-,- -beers-, and -ginger- -ales+beers", str); }
public void DiffWords() { var result = _stringDistance.DiffWords( "Soft drinks, coffees, teas, beers, and ginger ales", "Soft drinks, coffees, teas and beers"); var str = result.ToString(string.Empty); _output.WriteLine(str); Assert.True("Soft drinks, coffees, teas-,- -beers-, and -ginger- -ales+beers" == str); }