1
Fork 0

lsp tests: fix function overload hover splitting logic to conform with the new overload grouping

This commit is contained in:
automaticp 2023-11-01 12:44:40 +06:00
commit a9cda2b725

View file

@ -149,11 +149,8 @@ async def test_hover(
def expect_function(expected: str|set[str], result: lspt.Hover):
def strip_md(mdtext: lspt.MarkupContent) -> list[str]:
text = mdtext.value
entries = text.split(sep="---")
for i, entry in enumerate(entries):
entries[i] = strip_until_naked(entry)
text = strip_until_naked(mdtext.value)
entries = text.split(sep="\n")
return entries