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:
86
86
87
87
@ Test def `filter-by-type-old` =
88
88
check(
89
- """ |package example
89
+ """ |package example
90
90
|
91
91
|object enrichments:
92
92
| implicit class A(num: Int):
@@ -99,7 +99,6 @@ class CompletionExtensionSuite extends BaseCompletionSuite:
99
99
""" |identity: String (implicit)
100
100
|""" .stripMargin, // identity2 won't be available
101
101
filter = _.contains(" (implicit)" )
102
-
103
102
)
104
103
105
104
@ Test def `filter-by-type-subtype` =
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class CompletionKeywordSuite extends BaseCompletionSuite:
57
57
| **/
58
58
|}
59
59
|""" .stripMargin,
60
- " " ,
60
+ " " ,
61
61
includeCommitCharacter = true
62
62
)
63
63
Original file line number Diff line number Diff line change @@ -1316,7 +1316,7 @@ class CompletionSuite extends BaseCompletionSuite:
1316
1316
| val t: TT@@
1317
1317
|}
1318
1318
| """ .stripMargin,
1319
- " TTT[A <: Int] = List[A]"
1319
+ " TTT[A <: Int] = List[A]"
1320
1320
)
1321
1321
1322
1322
@ Test def `type-lambda` =
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ class HoverDocSuite extends BaseHoverSuite:
19
19
20
20
@ Test def `doc` =
21
21
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,
36
36
)
37
37
38
38
@ Test def `doc-parent` =
@@ -47,7 +47,6 @@ class HoverDocSuite extends BaseHoverSuite:
47
47
|```
48
48
|Found documentation for scala/collection/LinearSeqOps#headOption().
49
49
|""" .stripMargin,
50
-
51
50
)
52
51
53
52
@ Test def `java-method` =
@@ -61,7 +60,7 @@ class HoverDocSuite extends BaseHoverSuite:
61
60
|```
62
61
|Found documentation for java/lang/String#substring().
63
62
|""" .stripMargin
64
- )
63
+ )
65
64
66
65
@ Test def `object` =
67
66
check(
Original file line number Diff line number Diff line change @@ -208,26 +208,26 @@ class TemplateFileTests:
208
208
testTemplate(
209
209
""" # Hello {{ msg }}!""" ,
210
210
ext = " md"
211
- ) { t =>
211
+ ): t =>
212
212
assertEquals(
213
213
""" <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
+ )
218
218
219
219
@ Test
220
220
def mixedTemplates () : Unit =
221
221
testTemplate(
222
222
""" # Hello {{ msg }}!""" ,
223
223
ext = " md"
224
- ) { t =>
224
+ ): t =>
225
225
assertEquals(
226
226
""" <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
+ )
231
231
232
232
@ Test
233
233
def htmlOnly (): Unit =
You can’t perform that action at this time.
0 commit comments