summaryrefslogtreecommitdiff
path: root/internal/lsp/codeaction_prompts_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/codeaction_prompts_test.go')
-rw-r--r--internal/lsp/codeaction_prompts_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/codeaction_prompts_test.go b/internal/lsp/codeaction_prompts_test.go
index c5fd5e2..8b07dfe 100644
--- a/internal/lsp/codeaction_prompts_test.go
+++ b/internal/lsp/codeaction_prompts_test.go
@@ -59,7 +59,7 @@ func TestResolveCodeAction_UsesDiagnosticsPrompts(t *testing.T) {
if cap.msgs[0].Content != "DSYS" || cap.msgs[1].Role != "user" {
t.Fatalf("unexpected diagnostics prompts: %#v", cap.msgs)
}
- if got := cap.msgs[1].Content; !(contains(got, "oops1") && contains(got, "oops2") && contains(got, "var a")) {
+ if got := cap.msgs[1].Content; !contains(got, "oops1") || !contains(got, "oops2") || !contains(got, "var a") {
t.Fatalf("diagnostics/user content mismatch: %q", got)
}
}