diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-07-29 12:57:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 12:57:25 +0200 |
| commit | 9a33cc2fbe7e2dbc82a281af60f56e8232fe03d5 (patch) | |
| tree | 87671e8933453d586e151c610a3e316ac0f2e7c0 /src/testing/testing.odin | |
| parent | 03dfdacae8ef216d36bffe933ba7e6d0d2be6431 (diff) | |
| parent | 75add788487b2a4a1b5069484b97818142555ed0 (diff) | |
Merge pull request #452 from thetarnav/correct-collecting-array-symbols
Correct collecting symbols for array types
Diffstat (limited to 'src/testing/testing.odin')
| -rw-r--r-- | src/testing/testing.odin | 20 |
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, ) } } |