Skip to content

Commit

Permalink
internal/lsp/acmelsp: fix tests
Browse files Browse the repository at this point in the history
I broke these with my earlier commit. Sorry.
rsc committed Apr 6, 2024
1 parent b573109 commit c4eff1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/lsp/acmelsp/client_test.go
Original file line number Diff line number Diff line change
@@ -312,7 +312,7 @@ func main() {
}

diag := <-ch
pat := regexp.MustCompile("^s declared (and|but) not used$")
pat := regexp.MustCompile("^`?s'? declared (and|but) not used$")
if !pat.MatchString(diag.Message) {
t.Errorf("diagnostics message is %q does not match %q", diag.Message, pat)
}
@@ -535,7 +535,7 @@ func TestLocationLink(t *testing.T) {
},
}
got := lsp.LocationLink(l, "")
want := "/home/gopher/mod1/main.go:14:10-16:8"
want := "/home/gopher/mod1/main.go:14.10,16.8"
if got != want {
t.Errorf("LocationLink(%v) returned %q; want %q", l, got, want)
}

0 comments on commit c4eff1c

Please sign in to comment.