File tree Expand file tree Collapse file tree 5 files changed +28
-30
lines changed
presentation-compiler/test/dotty/tools/pc/tests
scaladoc/test/dotty/tools/scaladoc/site Expand file tree Collapse file tree 5 files changed +28
-30
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class CompletionExtensionSuite extends BaseCompletionSuite:
8686
8787 @ Test def `filter-by-type-old` =
8888 check(
89- """ |package example
89+ """ |package example
9090 |
9191 |object enrichments:
9292 | implicit class A(num: Int):
@@ -99,7 +99,6 @@ class CompletionExtensionSuite extends BaseCompletionSuite:
9999 """ |identity: String (implicit)
100100 |""" .stripMargin, // identity2 won't be available
101101 filter = _.contains(" (implicit)" )
102-
103102 )
104103
105104 @ Test def `filter-by-type-subtype` =
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class CompletionKeywordSuite extends BaseCompletionSuite:
5757 | **/
5858 |}
5959 |""" .stripMargin,
60- " " ,
60+ " " ,
6161 includeCommitCharacter = true
6262 )
6363
Original file line number Diff line number Diff line change @@ -1360,7 +1360,7 @@ class CompletionSuite extends BaseCompletionSuite:
13601360 | val t: TT@@
13611361 |}
13621362 | """ .stripMargin,
1363- " TTT[A <: Int] = List[A]"
1363+ " TTT[A <: Int] = List[A]"
13641364 )
13651365
13661366 @ Test def `type-lambda` =
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ class HoverDocSuite extends BaseHoverSuite:
1919
2020 @ Test def `doc` =
2121 check(
22- """ object a {
23- | <<java.util.Collections.empty@@List[Int]>>
24- |}
25- |""" .stripMargin,
26- """ |**Expression type**:
27- |```scala
28- |java.util.List[Int]
29- |```
30- |**Symbol signature**:
31- |```scala
32- |final def emptyList[T](): java.util.List[T]
33- |```
34- |Found documentation for java/util/Collections#emptyList().
35- |""" .stripMargin,
22+ """ | object a {
23+ | <<java.util.Collections.empty@@List[Int]>>
24+ |}
25+ |""" .stripMargin,
26+ """ |**Expression type**:
27+ |```scala
28+ |java.util.List[Int]
29+ |```
30+ |**Symbol signature**:
31+ |```scala
32+ |final def emptyList[T](): java.util.List[T]
33+ |```
34+ |Found documentation for java/util/Collections#emptyList().
35+ |""" .stripMargin,
3636 )
3737
3838 @ Test def `doc-parent` =
@@ -47,7 +47,6 @@ class HoverDocSuite extends BaseHoverSuite:
4747 |```
4848 |Found documentation for scala/collection/LinearSeqOps#headOption().
4949 |""" .stripMargin,
50-
5150 )
5251
5352 @ Test def `java-method` =
@@ -61,7 +60,7 @@ class HoverDocSuite extends BaseHoverSuite:
6160 |```
6261 |Found documentation for java/lang/String#substring().
6362 |""" .stripMargin
64- )
63+ )
6564
6665 @ Test def `object` =
6766 check(
Original file line number Diff line number Diff line change @@ -208,26 +208,26 @@ class TemplateFileTests:
208208 testTemplate(
209209 """ # Hello {{ msg }}!""" ,
210210 ext = " md"
211- ) { t =>
211+ ): t =>
212212 assertEquals(
213213 """ <section id="hello-there">
214- |<h1 class="h500"><a href="#hello-there" class="anchor"></a>Hello there!</h1>
215- |</section>""" .stripMargin,
216- t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim() )
217- }
214+ |<h1 class="h500"><a href="#hello-there" class="anchor"></a>Hello there!</h1>
215+ |</section>""" .stripMargin,
216+ t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim()
217+ )
218218
219219 @ Test
220220 def mixedTemplates () : Unit =
221221 testTemplate(
222222 """ # Hello {{ msg }}!""" ,
223223 ext = " md"
224- ) { t =>
224+ ): t =>
225225 assertEquals(
226226 """ <section id="hello-there2">
227- |<h1 class="h500"><a href="#hello-there2" class="anchor"></a>Hello there2!</h1>
228- |</section>""" .stripMargin,
229- t.resolveInner(RenderingContext (Map (" msg" -> " there2" ))).code.trim() )
230- }
227+ |<h1 class="h500"><a href="#hello-there2" class="anchor"></a>Hello there2!</h1>
228+ |</section>""" .stripMargin,
229+ t.resolveInner(RenderingContext (Map (" msg" -> " there2" ))).code.trim()
230+ )
231231
232232 @ Test
233233 def htmlOnly (): Unit =
You can’t perform that action at this time.
0 commit comments