diff options
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) |