aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-04-05 19:38:57 +0200
committerMartin Odersky <odersky@gmail.com>2013-04-05 19:38:57 +0200
commite60517ae83841a88cd1ad4c5ef24c27186adf346 (patch)
tree48395aade46c460a922aca75022dc5a2cbf6cb59
parent82b37ed8ecccf8b41247d538231ed058df907d34 (diff)
downloaddotty-e60517ae83841a88cd1ad4c5ef24c27186adf346.tar.gz
dotty-e60517ae83841a88cd1ad4c5ef24c27186adf346.tar.bz2
dotty-e60517ae83841a88cd1ad4c5ef24c27186adf346.zip
Adapted backlisting in test framework to new module class name scheme.
Previsouly, failed to detect backlisted package members that were module classes.
-rw-r--r--test/test/ShowClassTests.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test/ShowClassTests.scala b/test/test/ShowClassTests.scala
index 830f4011c..295664730 100644
--- a/test/test/ShowClassTests.scala
+++ b/test/test/ShowClassTests.scala
@@ -6,6 +6,7 @@ import dotty.tools.dotc.core.Symbols._
import dotty.tools.dotc.core.Flags._
import dotty.tools.dotc.core.Types._
import dotty.tools.dotc.util.Texts._
+import NameOps._
import dotty.tools.dotc.core.Decorators._
import org.junit.Test
@@ -27,7 +28,7 @@ class ShowClassTests extends DottyTest {
"scala.concurrent.Awaitable",
"scala.concurrent.impl.Promise",
// the following packages and classes cannot be read because
- // theyt refer to external libraries which are not available
+ // they refer to external libraries which are not available
// (apache.ant, usually)
"scala.tools.ant",
"scala.tools.partest.PartestTask")
@@ -52,7 +53,7 @@ class ShowClassTests extends DottyTest {
showPackage(ctx.requiredPackage(path))
def showClass(cls: Symbol)(implicit ctx: Context) = {
- val path = cls.fullName.toString
+ val path = cls.fullName.stripModuleClassSuffix.toString
if (blackList contains path)
println(s"blacklisted: $path")
else {