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 d02695c..540bb4c 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -206,7 +206,7 @@ expect_hover :: proc(t: ^testing.T, src: ^Source, expect_hover_string: string) { testing.errorf(t, "Expected empty hover string, but received %v", hover.contents.value); } - if strings.contains(expect_hover_string, hover.contents.value) { + if !strings.contains(hover.contents.value, expect_hover_string) { testing.errorf(t, "Expected hover string %v, but received %v", expect_hover_string, hover.contents.value); } |