Skip to content

Commit b1d1944

Browse files
committed
make tests less jvm dependent
1 parent 281576d commit b1d1944

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -669,14 +669,12 @@ class CompletionSuite extends BaseCompletionSuite:
669669
check(
670670
s"""|object Main {
671671
| Option(1) match {
672-
| case _: S@@
672+
| case _: Som@@
673673
|}
674674
|""".stripMargin,
675675
"""|Some[?] scala
676-
|ScalaReflectionException scala
677-
|Seq[A] scala.collection.immutable
678676
|""".stripMargin,
679-
topLines = Some(3)
677+
topLines = Some(1)
680678
)
681679

682680
@Test def adt3 =
@@ -695,39 +693,21 @@ class CompletionSuite extends BaseCompletionSuite:
695693
|""".stripMargin,
696694
"""|NotString: Int
697695
|Number: Regex
698-
|Nil scala.collection.immutable
699696
|""".stripMargin,
700-
topLines = Option(3)
697+
topLines = Some(2)
701698
)
702699

703700
@Test def adt4 =
704701
check(
705702
s"""|object Main {
706703
| val Number = "".r
707704
| "" match {
708-
| case _: N@@
709-
|}
710-
|""".stripMargin,
711-
"""|Number: Regex
712-
|NoSuchElementException java.util
713-
|NoSuchFieldError java.lang
714-
|""".stripMargin,
715-
topLines = Option(3)
716-
)
717-
718-
@Test def adt5 =
719-
check(
720-
s"""|object Main {
721-
| val Number = "".r
722-
| "" match {
723-
| case _: N@@
705+
| case _: Numb@@
724706
|}
725707
|""".stripMargin,
726708
"""|Number: Regex
727-
|NoSuchElementException java.util
728-
|NoSuchFieldError java.lang
729709
|""".stripMargin,
730-
topLines = Option(3)
710+
topLines = Some(1)
731711
)
732712

733713
@Test def `no-methods-on-case-type` =

0 commit comments

Comments
 (0)