diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-22 08:30:39 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-22 10:16:24 -0400 |
| commit | 81cf474010cdf0591266f78aa7a712979864e89a (patch) | |
| tree | 1e2a799c6d85032168ff4d048cfe5992753f1d21 /src/testing | |
| parent | fdf4aa1dc49b47f641b771fc9e0791489f4e5526 (diff) | |
Move comments from details to the end of the docs for the symbol and
use markdown for completion docs
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index d80b727..429d393 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -265,7 +265,8 @@ expect_hover :: proc(t: ^testing.T, src: ^Source, expect_hover_string: string) { return } - content_without_markdown, _ := strings.remove(hover.contents.value[8:], "\n```", 1, context.temp_allocator) + first_strip, _ := strings.remove(hover.contents.value, "```odin\n", 2, context.temp_allocator) + content_without_markdown, _ := strings.remove(first_strip, "\n```", 2, 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) |