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