diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-10 00:12:53 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-10 00:12:53 +0100 |
| commit | 021328892b6d488ef81b98b4d42cda230bde2e44 (patch) | |
| tree | 7918d1d08641f2236445aa8b038f199075b93330 /src/testing | |
| parent | d62becfcbc03ac303620d9bb9044042e899459dd (diff) | |
fixes
Diffstat (limited to 'src/testing')
| -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); } |