aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotty/tools
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-16 16:39:39 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-03-29 10:33:24 +0200
commit404ce89a1b9408e4c3ceb2f90eddbdb776e011c6 (patch)
tree66daf513951b1a110dff8e85cc565c9c33794278 /compiler/test/dotty/tools
parentc0a76af4f3434c0e6527d56e636b446bfd5598bb (diff)
downloaddotty-404ce89a1b9408e4c3ceb2f90eddbdb776e011c6.tar.gz
dotty-404ce89a1b9408e4c3ceb2f90eddbdb776e011c6.tar.bz2
dotty-404ce89a1b9408e4c3ceb2f90eddbdb776e011c6.zip
Remove `tests.scala`
Diffstat (limited to 'compiler/test/dotty/tools')
-rw-r--r--compiler/test/dotty/tools/dotc/CompilationTests.scala12
-rw-r--r--compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala10
2 files changed, 18 insertions, 4 deletions
diff --git a/compiler/test/dotty/tools/dotc/CompilationTests.scala b/compiler/test/dotty/tools/dotc/CompilationTests.scala
index e3b8f6234..283430565 100644
--- a/compiler/test/dotty/tools/dotc/CompilationTests.scala
+++ b/compiler/test/dotty/tools/dotc/CompilationTests.scala
@@ -53,6 +53,18 @@ class CompilationTests extends ParallelTesting {
@Test def compileIndexedSeqPos: Unit =
compileFile("../scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala", defaultOptions).pos
+ @Test def compileParSetLikePos: Unit =
+ compileFile("../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala", defaultOptions).pos
+
+ @Test def compileParSetSubsetPos: Unit = compileList(
+ List(
+ "../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala",
+ "../scala-scala/src/library/scala/collection/parallel/mutable/ParSet.scala",
+ "../scala-scala/src/library/scala/collection/mutable/SetLike.scala"
+ ),
+ scala2Mode
+ ).pos
+
@Test def compileAstPos: Unit =
compileDir("../compiler/src/dotty/tools/dotc/ast", defaultOptions).pos
diff --git a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
index d9a5d8a38..96ab241fd 100644
--- a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
+++ b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala
@@ -1,17 +1,19 @@
-package test.transform
+package dotty
+package tools
+package dotc
+package transform
import java.io._
import scala.io.Source._
import scala.reflect.io.Directory
import org.junit.Test
-import dotty.tools.dotc.Main
-import dotty.tools.dotc.reporting.TestReporter
+import reporting.TestReporter
class PatmatExhaustivityTest {
val testsDir = "../tests/patmat"
// stop-after: patmatexhaust-huge.scala crash compiler
- val options = List("-color:never", "-Ystop-after:splitter", "-Ycheck-all-patmat") ++ (new dotc.tests).classPath
+ val options = List("-color:never", "-Ystop-after:splitter", "-Ycheck-all-patmat") ++ CompilationTests.classPath
private def compileFile(file: File) = {
val stringBuffer = new StringWriter()