From fc87799f798a409860f1472421cb446dec58ed50 Mon Sep 17 00:00:00 2001 From: Jakub Ciesluk <323892@uwr.edu.pl> Date: Tue, 13 Feb 2024 13:08:17 +0100 Subject: [PATCH] chore: Fix CI after changes in dotty --- .../src/test/scala/tests/pc/CompletionDocSuite.scala | 8 ++++---- .../src/test/scala/tests/pc/CompletionSuite.scala | 10 +++++++--- .../test/scala/tests/pc/CompletionWorkspaceSuite.scala | 4 ++-- .../test/scala/tests/pc/ShadowingCompletionSuite.scala | 4 ++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/tests/cross/src/test/scala/tests/pc/CompletionDocSuite.scala b/tests/cross/src/test/scala/tests/pc/CompletionDocSuite.scala index be06b50263d..926b59a5b57 100644 --- a/tests/cross/src/test/scala/tests/pc/CompletionDocSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/CompletionDocSuite.scala @@ -666,7 +666,7 @@ class CompletionDocSuite extends BaseCompletionSuite { compat = Map( "2.13" -> vectorDocs213, "3" -> vectorDocs213, - ">=3.4.1-RC1-bin-20240201-hash-NIGHTLY" -> + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> (vectorDocs213 + """|> Creates a collection with the specified elements. | @@ -677,7 +677,7 @@ class CompletionDocSuite extends BaseCompletionSuite { |- `elems`: the elements of the created collection | |**Returns:** a new collection with elements `elems` - |Vector[A](elems: A*): CC[A] + |Vector[A](elems: A*): Vector[A] | |""".stripMargin) ) @@ -880,9 +880,9 @@ class CompletionDocSuite extends BaseCompletionSuite { """|myNumbers: Vector[Int] |""".stripMargin, compat = Map( - ">=3.4.1-RC1-bin-20240201-hash-NIGHTLY" -> + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> """|myNumbers: Vector[Int] - |myNumbers(i: Int): A + |myNumbers(i: Int): Int |""".stripMargin ) ) diff --git a/tests/cross/src/test/scala/tests/pc/CompletionSuite.scala b/tests/cross/src/test/scala/tests/pc/CompletionSuite.scala index c7fe1f9e5b5..8d81dfb63de 100644 --- a/tests/cross/src/test/scala/tests/pc/CompletionSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/CompletionSuite.scala @@ -33,12 +33,12 @@ class CompletionSuite extends BaseCompletionSuite { |List - scala.collection.immutable |List[A](elems: A*): CC[A] |""".stripMargin, - ">=3.4.1-RC1-bin-20240201-hash-NIGHTLY" -> + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> """|List scala.collection.immutable - |List[A](elems: A*): CC[A] + |List[A](elems: A*): List[A] |List - java.awt |List - java.util - |ListMap[K, V](elems: (K, V)*): CC[K, V] + |ListMap[K, V](elems: (K, V)*): ListMap[K, V] |""".stripMargin ), topLines = Some(5) @@ -464,6 +464,10 @@ class CompletionSuite extends BaseCompletionSuite { "3" -> """|TrieMap scala.collection.concurrent |TrieMap[K, V](elems: (K, V)*): CC[K, V] + |""".stripMargin, + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> + """|TrieMap scala.collection.concurrent + |TrieMap[K, V](elems: (K, V)*): TrieMap[K, V] |""".stripMargin ) ) diff --git a/tests/cross/src/test/scala/tests/pc/CompletionWorkspaceSuite.scala b/tests/cross/src/test/scala/tests/pc/CompletionWorkspaceSuite.scala index 0c53e3a795a..ca826152f28 100644 --- a/tests/cross/src/test/scala/tests/pc/CompletionWorkspaceSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/CompletionWorkspaceSuite.scala @@ -953,10 +953,10 @@ class CompletionWorkspaceSuite extends BaseCompletionSuite { "2" -> """|fooBar: String |fooBar - case_class_param.A: List[Int] |""".stripMargin, - ">=3.4.1-RC1-bin-20240201-hash-NIGHTLY" -> + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> """|fooBar: String |fooBar: List[Int] - |fooBar(n: Int): A + |fooBar(n: Int): Int |""".stripMargin ) ) diff --git a/tests/cross/src/test/scala/tests/pc/ShadowingCompletionSuite.scala b/tests/cross/src/test/scala/tests/pc/ShadowingCompletionSuite.scala index e288f03d201..c4d54343f91 100644 --- a/tests/cross/src/test/scala/tests/pc/ShadowingCompletionSuite.scala +++ b/tests/cross/src/test/scala/tests/pc/ShadowingCompletionSuite.scala @@ -28,8 +28,8 @@ class ShadowingCompletionSuite extends BaseCompletionSuite { |""".stripMargin, compat = Map( "2" -> "ListBuffer - scala.collection.mutable", - ">=3.4.1-RC1-bin-20240201-hash-NIGHTLY" -> - """|ListBuffer[A](elems: A*): CC[A] + ">=3.4.1-RC1-bin-20240208-hash-NIGHTLY" -> + """|ListBuffer[A](elems: A*): ListBuffer[A] |ListBuffer - scala.collection.mutable |""".stripMargin )