diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-06-27 21:48:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-27 21:48:40 +0200 |
| commit | 4eae668a145df223c6cfc7b8929cdd49d436756d (patch) | |
| tree | 107fb0d242639754162e1028e61d18f8dc6bb782 /src/testing/testing.odin | |
| parent | 863ad953c7ce368c001e15339a0785e1aca0bdc5 (diff) | |
| parent | 9bbb4b4450b5310a68aa4497a3125674452037d7 (diff) | |
Merge pull request #678 from BradLewis/feat/proc-hover-comments
Add proc comments to hover information
Diffstat (limited to 'src/testing/testing.odin')
| -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) |