diff options
author | odersky <odersky@gmail.com> | 2014-03-21 09:17:59 +0100 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2014-03-21 09:17:59 +0100 |
commit | fd76c38000f206b3d27ac68eaeddb0f76678dfc2 (patch) | |
tree | 8355f0ef64102f569ebd970e49c2a591116d0b44 /test | |
parent | b5864b48d04adf6cab1dbe58d394ad608dafd440 (diff) | |
parent | e50646c21cbc842c1188fc876e16ea2b3e2a2ea3 (diff) | |
download | dotty-fd76c38000f206b3d27ac68eaeddb0f76678dfc2.tar.gz dotty-fd76c38000f206b3d27ac68eaeddb0f76678dfc2.tar.bz2 dotty-fd76c38000f206b3d27ac68eaeddb0f76678dfc2.zip |
Merge pull request #88 from dotty-staging/try/hygienic-desugaring
Try/hygienic desugaring
Diffstat (limited to 'test')
-rw-r--r-- | test/dotc/tests.scala | 2 | ||||
-rw-r--r-- | test/test/ShowClassTests.scala | 2 |
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) = { |