Skip to content

Commit

Permalink
Add hover test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jan 15, 2019
1 parent fab9114 commit c676585
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions language-server/test/dotty/tools/languageserver/HoverTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,18 @@ class HoverTest {
|}""".withSource
.hover(m1 to m2, hoverContent("Int", "hello"))
}

@Test def i4678: Unit = {
code"""class Foo {
| val x: Int = (${m1}1:${m2} ${m3}@annot1 @annot2 @annot3 @annot4 @annot5${m4})
|}
|class annot1 extends scala.annotation.Annotation
|class annot2 extends scala.annotation.Annotation
|class annot3 extends scala.annotation.Annotation
|class annot4 extends scala.annotation.Annotation
|class annot5 extends scala.annotation.Annotation
|""".withSource
.hover(m1 to m2, hoverContent("Int(1)"))
.hover(m3 to m4, hoverContent("Int(1) @annot1 @annot2 @annot3 @annot4 @annot5"))
}
}

0 comments on commit c676585

Please sign in to comment.