Skip to content

Commit 1d568cb

Browse files
committed
add test case
1 parent 75dccc1 commit 1d568cb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

gopls/internal/golang/hover_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ const (
109109
D
110110
E
111111
)
112+
`,
113+
groupComment: []string{"foo", "foo", "bar", "bar"},
114+
},
115+
{
116+
src: `package test
117+
const (
118+
/* foo */
119+
A = iota
120+
// doc comment
121+
C
122+
123+
/* bar */
124+
D
125+
// doc comment
126+
E // line comment
127+
)
112128
`,
113129
groupComment: []string{"foo", "foo", "bar", "bar"},
114130
},

0 commit comments

Comments
 (0)