-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always display Expression Type on hovers
- Loading branch information
1 parent
e6eb5c9
commit c457790
Showing
6 changed files
with
153 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
tests/cross/src/test/scala/tests/hover/HoverLiteralSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package tests.hover | ||
|
||
import tests.pc.BaseHoverSuite | ||
|
||
class HoverLiteralSuite extends BaseHoverSuite { | ||
|
||
check( | ||
"literal-int", | ||
"""object a { | ||
| val x = 4@@2 | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|Int | ||
|```""".stripMargin.hover | ||
) | ||
|
||
check( | ||
"literal-double", | ||
"""object a { | ||
| val x = 4@@2d | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|Double | ||
|```""".stripMargin.hover | ||
) | ||
|
||
check( | ||
"literal-float", | ||
"""object a { | ||
| val x = 4@@2f | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|Float | ||
|```""".stripMargin.hover | ||
) | ||
|
||
check( | ||
"literal-long", | ||
"""object a { | ||
| val x = 4@@2L | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|Long | ||
|```""".stripMargin.hover | ||
) | ||
|
||
check( | ||
"literal-string", | ||
"""object a { | ||
| val x = "Hel@@lo" | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|String | ||
|```""".stripMargin.hover | ||
) | ||
|
||
check( | ||
"interpolator-part", | ||
"""object a { | ||
| val name = "John" | ||
| s"Hel@@lo $name" | ||
|} | ||
|""".stripMargin, | ||
"""|```scala | ||
|String | ||
|```""".stripMargin | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.