-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionRelease11Suite.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,26 @@ | ||
package dotty.tools.pc.tests.completion | ||
|
||
import dotty.tools.pc.base.BaseCompletionSuite | ||
|
||
import org.junit.Test | ||
import java.nio.file.Path | ||
|
||
class CompletionRelease11Suite extends BaseCompletionSuite: | ||
|
||
override protected def scalacOptions(classpath: Seq[Path]): Seq[String] = | ||
"-release:11" +: super.scalacOptions(classpath) | ||
|
||
@Test def java11Symbols = | ||
check( | ||
""" | ||
|object A { | ||
| "".repea@@ | ||
|}""".stripMargin, | ||
"""repeat(x$0: Int): String | ||
|replaceAll(x$0: String, x$1: String): String | ||
|prependedAll[B >: A](prefix: IterableOnce[B]): IndexedSeq[B] | ||
|prependedAll(prefix: String): String | ||
|prependedAll[B >: Char](prefix: IterableOnce[B]): IndexedSeq[B] | ||
|replaceAllLiterally(literal: String, replacement: String): String | ||
|""".stripMargin | ||
) |
25 changes: 25 additions & 0 deletions
25
presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionRelease8Suite.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,25 @@ | ||
package dotty.tools.pc.tests.completion | ||
|
||
import dotty.tools.pc.base.BaseCompletionSuite | ||
|
||
import org.junit.Test | ||
import java.nio.file.Path | ||
|
||
class CompletionRelease8Suite extends BaseCompletionSuite: | ||
|
||
override protected def scalacOptions(classpath: Seq[Path]): Seq[String] = | ||
"-release:8" +: super.scalacOptions(classpath) | ||
|
||
@Test def noJvm11Symbols = | ||
check( | ||
""" | ||
|object A { | ||
| "".repea@@ | ||
|}""".stripMargin, | ||
"""replaceAll(x$0: String, x$1: String): String | ||
|prependedAll[B >: A](prefix: IterableOnce[B]): IndexedSeq[B] | ||
|prependedAll(prefix: String): String | ||
|prependedAll[B >: Char](prefix: IterableOnce[B]): IndexedSeq[B] | ||
|replaceAllLiterally(literal: String, replacement: String): String | ||
|""".stripMargin | ||
) |