From 404ce89a1b9408e4c3ceb2f90eddbdb776e011c6 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Thu, 16 Mar 2017 16:39:39 +0100 Subject: Remove `tests.scala` --- compiler/test/dotty/tools/dotc/CompilationTests.scala | 12 ++++++++++++ .../dotty/tools/dotc/transform/PatmatExhaustivityTest.scala | 10 ++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'compiler/test/dotty/tools/dotc') 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() -- cgit v1.2.3