From 021328892b6d488ef81b98b4d42cda230bde2e44 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Fri, 10 Dec 2021 00:12:53 +0100 Subject: fixes --- src/testing/testing.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testing') 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); } -- cgit v1.2.3