aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dotc/tests.scala2
-rw-r--r--test/test/ShowClassTests.scala2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 0caef3cae..1ddd0a578 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -18,6 +18,7 @@ class tests extends CompilerTest {
val posDir = "./tests/pos/"
val negDir = "./tests/neg/"
+ val newDir = "./tests/new/"
val dotcDir = "./src/dotty/"
/*
@Test def pos_Coder() = compileFile(posDir, "Coder", twice)
@@ -46,6 +47,7 @@ class tests extends CompilerTest {
@Test def pos_approximateUnion = compileFile(posDir, "approximateUnion", twice)
*/
@Test def pos_all = compileFiles(posDir, twice)
+ @Test def pos_new = compileFiles(newDir, "-Xprompt" :: Nil)
@Test def neg_blockescapes() = compileFile(negDir, "blockescapesNeg", xerrors = 1)
@Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 4)
diff --git a/test/test/ShowClassTests.scala b/test/test/ShowClassTests.scala
index f683b26e7..46f9e385e 100644
--- a/test/test/ShowClassTests.scala
+++ b/test/test/ShowClassTests.scala
@@ -66,7 +66,7 @@ class ShowClassTests extends DottyTest {
showPackage(ctx.requiredPackage(path))
val nstubs = Symbols.stubs.length
debug_println(s"$nstubs stubs")
- assert(nstubs <= expectedStubs, s"stubs found $nstubs, expected: $expectedStubs")
+ assert(nstubs <= expectedStubs, s"stubs found: $nstubs, expected: $expectedStubs\nstubs: ${Symbols.stubs.mkString(",")}")
}
def showClass(cls: Symbol)(implicit ctx: Context) = {