aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing.odin')
-rw-r--r--src/testing/testing.odin20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin
index 0d9c028..a9b8362 100644
--- a/src/testing/testing.odin
+++ b/src/testing/testing.odin
@@ -329,18 +329,18 @@ expect_hover :: proc(
log.error(t, "Failed get_hover_information")
}
- if expect_hover_string == "" && hover.contents.value != "" {
+ /*
+ ```odin\n
+ content\n
+ ```
+ */
+ content_without_markdown := hover.contents.value[8:len(hover.contents.value)-5]
+
+ if content_without_markdown != expect_hover_string {
log.errorf(
- "Expected empty hover string, but received %v",
- hover.contents.value,
- )
- }
-
- if !strings.contains(hover.contents.value, expect_hover_string) {
- log.errorf(
- "Expected hover string %v, but received %v",
+ "Expected hover string:\n\"%v\", but received:\n\"%v\"",
expect_hover_string,
- hover.contents.value,
+ content_without_markdown,
)
}
}