27 references to ComputeDistance
Microsoft.CodeAnalysis.Workspaces.UnitTests (27)
Differencing\LongestCommonSubsequenceTests.cs (27)
90Assert.Equal(0.0, lcs.ComputeDistance(str1, str2));
103Assert.Equal(1.0, lcs.ComputeDistance(str1, str2));
116Assert.Equal(0.5, lcs.ComputeDistance(str1, str2));
129Assert.Equal(0.5, lcs.ComputeDistance(str1, str2));
142Assert.Equal(0.4, lcs.ComputeDistance(str1, str2));
155Assert.Equal(1.0, lcs.ComputeDistance(str1, str2));
168Assert.Equal(0.75, lcs.ComputeDistance(str1, str2));
181Assert.Equal(0.5, lcs.ComputeDistance(str1, str2));
194Assert.Equal(0.4, lcs.ComputeDistance(str1, str2));
207Assert.Equal(1.0, lcs.ComputeDistance(str1, str2));
220Assert.Equal(0.75, lcs.ComputeDistance(str1, str2));
233Assert.Equal(0.6, lcs.ComputeDistance(str1, str2));
246Assert.Equal(0.4, lcs.ComputeDistance(str1, str2));
259Assert.Equal(0.556, lcs.ComputeDistance(str1, str2), precision: 3);
272Assert.Equal(0.6, lcs.ComputeDistance(str1, str2));
288Assert.Equal(0.429, lcs.ComputeDistance(str1, str2), precision: 3);
304Assert.Equal(0.5, lcs.ComputeDistance(str1, str2));
324Assert.Equal(0.900, lcs.ComputeDistance(s, sx9), precision: 3);
325Assert.Equal(0.990, lcs.ComputeDistance(s, sx99), precision: 3);
326Assert.Equal(1.000, lcs.ComputeDistance(s, sx1000), precision: 3);
327Assert.Equal(1.000, lcs.ComputeDistance(s, sx100000000), precision: 3);
329Assert.Equal(0.900, lcs.ComputeDistance(sx9, s), precision: 3);
330Assert.Equal(0.990, lcs.ComputeDistance(sx99, s), precision: 3);
331Assert.Equal(1.000, lcs.ComputeDistance(sx1000, s), precision: 3);
332Assert.Equal(1.000, lcs.ComputeDistance(sx100000000, s), precision: 3);
334Assert.Equal(1.000, lcs.ComputeDistance(x10 + y1000, x10), precision: 3);
335Assert.Equal(0.5, lcs.ComputeDistance(x1000 + y1000, x1000), precision: 3);