diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-25 09:17:22 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-25 17:47:16 -0400 |
| commit | 9bbb4b4450b5310a68aa4497a3125674452037d7 (patch) | |
| tree | b5f1dad8a8277d613dd1b00938b8a73f49713134 /src/testing | |
| parent | 344eea71fbf1863106bc051dbae11534e7dcca74 (diff) | |
Add proc comments to hover information
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 29fbd6f..4500676 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -252,7 +252,7 @@ expect_hover :: proc(t: ^testing.T, src: ^Source, expect_hover_string: string) { return } - content_without_markdown := hover.contents.value[8:len(hover.contents.value) - 5] + content_without_markdown, _ := strings.remove(hover.contents.value[8:], "\n```", 1, context.temp_allocator) if content_without_markdown != expect_hover_string { log.errorf("Expected hover string:\n%q, but received:\n%q", expect_hover_string, content_without_markdown) |