提交 ac06fafc 编写于 作者: C CyrusNajmabadi

Make tests happy.

上级 45ab5ccc
...@@ -768,14 +768,14 @@ private static IEnumerable<PatternMatch> TryMatchMultiWordPattern(string candida ...@@ -768,14 +768,14 @@ private static IEnumerable<PatternMatch> TryMatchMultiWordPattern(string candida
if (matches.IsDefaultOrEmpty) if (matches.IsDefaultOrEmpty)
{ {
Assert.True(expectedSpans == null || expectedSpans.Count == 0); Assert.True(expectedSpans == null || expectedSpans.Count == 0);
return null;
} }
else else
{ {
var actualSpans = matches.SelectMany(m => m.MatchedSpans).OrderBy(s => s.Start).ToList(); var actualSpans = matches.SelectMany(m => m.MatchedSpans).OrderBy(s => s.Start).ToList();
Assert.Equal(expectedSpans, actualSpans); Assert.Equal(expectedSpans, actualSpans);
return matches;
} }
return matches;
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册