aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/test/PackageStructure.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-08-19 15:28:39 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-08-21 15:51:57 +0200
commit0b69be68d3100103ebfd636bbc36f9cdcbd6fb28 (patch)
tree2b7a1db4beda3963cdddfd4ce86d9d8d9108f5a0 /dottydoc/test/PackageStructure.scala
parentd8c02ec2f8ef225fde2be5324bbf46958132d865 (diff)
downloaddotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.tar.gz
dotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.tar.bz2
dotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.zip
Add phase to deal with constructors
Diffstat (limited to 'dottydoc/test/PackageStructure.scala')
-rw-r--r--dottydoc/test/PackageStructure.scala20
1 files changed, 10 insertions, 10 deletions
diff --git a/dottydoc/test/PackageStructure.scala b/dottydoc/test/PackageStructure.scala
index af6e52184..00caaa2c0 100644
--- a/dottydoc/test/PackageStructure.scala
+++ b/dottydoc/test/PackageStructure.scala
@@ -10,7 +10,7 @@ import model.internal._
class PackageStructure extends DottyTest {
@Test def multipleCompilationUnits = {
val source1 = new SourceFile(
- "<test>",
+ "TraitA.scala",
"""
|package scala
|
@@ -19,7 +19,7 @@ class PackageStructure extends DottyTest {
)
val source2 = new SourceFile(
- "<test>",
+ "TraitB.scala",
"""
|package scala
|
@@ -27,8 +27,8 @@ class PackageStructure extends DottyTest {
""".stripMargin
)
- checkSources(source1 :: source2 :: Nil) { doc =>
- doc.packages("scala") match {
+ checkSources(source1 :: source2 :: Nil) { packages =>
+ packages("scala") match {
case PackageImpl(_, List(tA, tB), _, _) =>
assert(
tA.name == "A" && tB.name == "B",
@@ -42,7 +42,7 @@ class PackageStructure extends DottyTest {
@Test def multiplePackages = {
val source1 = new SourceFile(
- "<test>",
+ "TraitA.scala",
"""
|package scala
|package collection
@@ -51,7 +51,7 @@ class PackageStructure extends DottyTest {
""".stripMargin)
val source2 = new SourceFile(
- "<test>",
+ "TraitB.scala",
"""
|package scala
|package collection
@@ -59,8 +59,8 @@ class PackageStructure extends DottyTest {
|trait B
""".stripMargin)
- checkSources(source1 :: source2 :: Nil) { doc =>
- doc.packages("scala") match {
+ checkSources(source1 :: source2 :: Nil) { packages =>
+ packages("scala") match {
case PackageImpl(
"scala",
List(PackageImpl("scala.collection", List(tA, tB), _, _)),
@@ -72,10 +72,10 @@ class PackageStructure extends DottyTest {
)
case _ =>
- fail(s"""Incorrect package structure for 'scala' package: ${doc.packages("scala")}""")
+ fail(s"""Incorrect package structure for 'scala' package: ${packages("scala")}""")
}
- doc.packages("scala.collection") match {
+ packages("scala.collection") match {
case PackageImpl("scala.collection", List(tA, tB), _, _) =>
assert(
tA.name == "A" && tB.name == "B",